All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] netbase: Adding loop back for machine name in hosts file
@ 2014-07-31 14:59 Sujith H
  2014-07-31 15:42 ` Khem Raj
  2014-07-31 16:20 ` Enrico Scholz
  0 siblings, 2 replies; 8+ messages in thread
From: Sujith H @ 2014-07-31 14:59 UTC (permalink / raw)
  To: openembedded-core; +Cc: Sujith H

From: Sujith H <Sujith_Haridasan@mentor.com>

If hostname is not added to /etc/hosts file then rpcinfo
command fails when hostname is passed as argument. This was
observed when rpcinfo command was tested on freescale target.
Below was the output observed without this change.

root@mx6q:~# rpcinfo -s mx6q
rpcinfo: can't contact rpcbind: RPC: (unknown error code)

Below is the output after this change:
root@mx6q:~# rpcinfo -s mx6q
   program version(s) netid(s)                         service     owner
    100000  2,3,4     local,udp,tcp,udp6,tcp6          portmapper  superuser
root@mx6q:~#

Signed-off-by: Sujith H <sujith.h@gmail.com>
---
 meta/recipes-core/netbase/netbase_5.2.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/netbase/netbase_5.2.bb b/meta/recipes-core/netbase/netbase_5.2.bb
index ab7ae65..a6fb010 100644
--- a/meta/recipes-core/netbase/netbase_5.2.bb
+++ b/meta/recipes-core/netbase/netbase_5.2.bb
@@ -18,6 +18,7 @@ do_install () {
 	install -m 0644 etc-rpc ${D}${sysconfdir}/rpc
 	install -m 0644 etc-protocols ${D}${sysconfdir}/protocols
 	install -m 0644 etc-services ${D}${sysconfdir}/services
+	echo 127.0.1.1 "             "${MACHINE} >> ${D}${sysconfdir}/hosts
 }
 
 CONFFILES_${PN} = "${sysconfdir}/hosts"
-- 
1.8.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-08-04 13:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-31 14:59 [PATCH] netbase: Adding loop back for machine name in hosts file Sujith H
2014-07-31 15:42 ` Khem Raj
2014-07-31 15:48   ` Mark Hatle
2014-07-31 16:20 ` Enrico Scholz
2014-07-31 20:44   ` Otavio Salvador
2014-08-01  0:20     ` Mark Hatle
2014-08-01  9:22     ` Enrico Scholz
2014-08-04 13:57       ` sujith h

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.