Re: [OE-core] [PATCH] image.bbclass: Adding loop back for machine name in hosts file

2014-08-05 Thread sujith h
On Tue, Aug 5, 2014 at 6:17 PM, Koen Kooi wrote: > > Op 4 aug. 2014, om 15:57 heeft Sujith H het volgende > geschreven: > > > From: Sujith H > > > > If hostname is not added to /etc/hosts file then rpcinfo > > command fails when hostname is passed as argument. This was > > observed when rpcinfo

Re: [OE-core] [PATCH] image.bbclass: Adding loop back for machine name in hosts file

2014-08-05 Thread Koen Kooi
Op 4 aug. 2014, om 15:57 heeft Sujith H het volgende geschreven: > From: Sujith H > > 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 o

Re: [OE-core] [PATCH] image.bbclass: Adding loop back for machine name in hosts file

2014-08-05 Thread Enrico Scholz
sujith h writes: > Is it ok to read from /etc/hostname and then have that in the /etc/hosts > file, rather than using ${MACHINE}? > ... > + echo 127.0.1.1 " "${MACHINE} >> > ${IMAGE_ROOTFS}${sysconfdir}/hosts I do not see how this can be done while building the image or the packag

Re: [OE-core] [PATCH] image.bbclass: Adding loop back for machine name in hosts file

2014-08-04 Thread Khem Raj
On 14-08-04 15:18:05, Paul Eggleton wrote: > Hi Sujith, > > On Monday 04 August 2014 19:27:08 Sujith H wrote: > > From: Sujith H > > > > 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

Re: [OE-core] [PATCH] image.bbclass: Adding loop back for machine name in hosts file

2014-08-04 Thread sujith h
On Mon, Aug 4, 2014 at 9:05 PM, Enrico Scholz < enrico.sch...@sigma-chemnitz.de> wrote: > Sujith H writes: > > > If hostname is not added to /etc/hosts file then rpcinfo command fails > > when hostname is passed as argument. > > ... > > root@mx6q:~# rpcinfo -s mx6q > > rpcinfo: can't contact rpcb

Re: [OE-core] [PATCH] image.bbclass: Adding loop back for machine name in hosts file

2014-08-04 Thread sujith h
On Mon, Aug 4, 2014 at 8:19 PM, Paul Eggleton wrote: > On Monday 04 August 2014 20:03:09 sujith h wrote: > > Hi Paul, > > > > > > On Mon, Aug 4, 2014 at 7:48 PM, Paul Eggleton < > paul.eggle...@linux.intel.com > > > wrote: > > > > > > Hi Sujith, > > > > > > On Monday 04 August 2014 19:27:08 Sujit

Re: [OE-core] [PATCH] image.bbclass: Adding loop back for machine name in hosts file

2014-08-04 Thread Enrico Scholz
Sujith H writes: > If hostname is not added to /etc/hosts file then rpcinfo command fails > when hostname is passed as argument. > ... > root@mx6q:~# rpcinfo -s mx6q > rpcinfo: can't contact rpcbind: RPC: (unknown error code) Is this really a common/valid use case? 'rpcinfo' is a debug tool and

Re: [OE-core] [PATCH] image.bbclass: Adding loop back for machine name in hosts file

2014-08-04 Thread Paul Eggleton
On Monday 04 August 2014 20:03:09 sujith h wrote: > Hi Paul, > > > On Mon, Aug 4, 2014 at 7:48 PM, Paul Eggleton > wrote: > > > > Hi Sujith, > > > > On Monday 04 August 2014 19:27:08 Sujith H wrote: > > > From: Sujith H > > > > > > If hostname is not added to /etc/hosts file then rpcinfo > >

Re: [OE-core] [PATCH] image.bbclass: Adding loop back for machine name in hosts file

2014-08-04 Thread sujith h
Hi Paul, On Mon, Aug 4, 2014 at 7:48 PM, Paul Eggleton wrote: > Hi Sujith, > > On Monday 04 August 2014 19:27:08 Sujith H wrote: > > From: Sujith H > > > > If hostname is not added to /etc/hosts file then rpcinfo > > command fails when hostname is passed as argument. This was > > observed when

Re: [OE-core] [PATCH] image.bbclass: Adding loop back for machine name in hosts file

2014-08-04 Thread Paul Eggleton
Hi Sujith, On Monday 04 August 2014 19:27:08 Sujith H wrote: > From: Sujith H > > 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

Re: [OE-core] [PATCH] image.bbclass: Adding loop back for machine name in hosts file

2014-08-04 Thread sujith h
Hi, Let me know if any more changes have to be made to make this patch look better. On Mon, Aug 4, 2014 at 7:27 PM, Sujith H wrote: > From: Sujith H > > If hostname is not added to /etc/hosts file then rpcinfo > command fails when hostname is passed as argument. This was > observed when rpci

[OE-core] [PATCH] image.bbclass: Adding loop back for machine name in hosts file

2014-08-04 Thread Sujith H
From: Sujith H 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