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 <[email protected]> wrote: > From: Sujith H <[email protected]> > > 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 <[email protected]> > --- > meta/classes/image.bbclass | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass > index 82605f2..7a5a5c1 100644 > --- a/meta/classes/image.bbclass > +++ b/meta/classes/image.bbclass > @@ -341,6 +341,14 @@ ssh_disable_dns_lookup () { > fi > } > > +ROOTFS_POSTPROCESS_COMMAND += "add_machine_name_loop_back;" > + > +add_machine_name_loop_back() { > + if [ -n ${MACHINE} ]; then > + echo 127.0.1.1 " "${MACHINE} >> > ${IMAGE_ROOTFS}${sysconfdir}/hosts > + fi > +} > + > # Enable postinst logging if debug-tweaks is enabled > postinst_enable_logging () { > mkdir -p ${IMAGE_ROOTFS}${sysconfdir}/default > -- > 1.8.4 > > Thanks, Sujith H -- സുജിത് ഹരിദാസന് Bangalore <Project>Contributor to KDE project http://fci.wikia.com/wiki/Anti-DRM-Campaign <Blog> http://sujithh.info
-- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
