* [PATCH 1/2] netbase: Adding loop back for machine name in hosts file
@ 2014-08-04 13:54 Sujith H
2014-08-04 14:00 ` sujith h
0 siblings, 1 reply; 2+ messages in thread
From: Sujith H @ 2014-08-04 13:54 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_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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/2] netbase: Adding loop back for machine name in hosts file
2014-08-04 13:54 [PATCH 1/2] netbase: Adding loop back for machine name in hosts file Sujith H
@ 2014-08-04 14:00 ` sujith h
0 siblings, 0 replies; 2+ messages in thread
From: sujith h @ 2014-08-04 14:00 UTC (permalink / raw)
To: openembedded-core; +Cc: Sujith H
[-- Attachment #1: Type: text/plain, Size: 1744 bytes --]
Kindly ignore the above patch. It was sent by mistake :( Sorry for trouble.
On Mon, Aug 4, 2014 at 7:24 PM, Sujith H <sujith.h@gmail.com> wrote:
> 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
>
>
--
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info
[-- Attachment #2: Type: text/html, Size: 2861 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-04 14:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-04 13:54 [PATCH 1/2] netbase: Adding loop back for machine name in hosts file Sujith H
2014-08-04 14:00 ` 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.