From: Sujith H <sujith.h@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Sujith H <Sujith_Haridasan@mentor.com>
Subject: [PATCH 1/2] netbase: Adding loop back for machine name in hosts file
Date: Mon, 4 Aug 2014 19:24:49 +0530 [thread overview]
Message-ID: <1407160489-30708-1-git-send-email-sujith.h@gmail.com> (raw)
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_Haridasan@mentor.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
next reply other threads:[~2014-08-04 13:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-04 13:54 Sujith H [this message]
2014-08-04 14:00 ` [PATCH 1/2] netbase: Adding loop back for machine name in hosts file sujith h
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1407160489-30708-1-git-send-email-sujith.h@gmail.com \
--to=sujith.h@gmail.com \
--cc=Sujith_Haridasan@mentor.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.