<div dir="ltr">Hi Paul,<br><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 4, 2014 at 7:48 PM, Paul Eggleton <span dir="ltr">&lt;<a href="mailto:paul.eggleton@linux.intel.com" target="_blank">paul.eggleton@linux.intel.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Sujith,<br>
<div><div class="h5"><br>
On Monday 04 August 2014 19:27:08 Sujith H wrote:<br>
&gt; From: Sujith H &lt;<a href="mailto:Sujith_Haridasan@mentor.com">Sujith_Haridasan@mentor.com</a>&gt;<br>
&gt;<br>
&gt; If hostname is not added to /etc/hosts file then rpcinfo<br>
&gt; command fails when hostname is passed as argument. This was<br>
&gt; observed when rpcinfo command was tested on freescale target.<br>
&gt; Below was the output observed without this change.<br>
&gt;<br>
&gt; root@mx6q:~# rpcinfo -s mx6q<br>
&gt; rpcinfo: can&#39;t contact rpcbind: RPC: (unknown error code)<br>
&gt;<br>
&gt; Below is the output after this change:<br>
&gt; root@mx6q:~# rpcinfo -s mx6q<br>
&gt;    program version(s) netid(s)                         service     owner<br>
&gt;     100000  2,3,4     local,udp,tcp,udp6,tcp6          portmapper  superuser<br>
&gt; root@mx6q:~#<br>
&gt;<br>
&gt; Signed-off-by: Sujith H &lt;<a href="mailto:Sujith_Haridasan@mentor.com">Sujith_Haridasan@mentor.com</a>&gt;<br>
&gt; ---<br>
&gt;  meta/classes/image.bbclass | 8 ++++++++<br>
&gt;  1 file changed, 8 insertions(+)<br>
&gt;<br>
&gt; diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass<br>
&gt; index 82605f2..7a5a5c1 100644<br>
&gt; --- a/meta/classes/image.bbclass<br>
&gt; +++ b/meta/classes/image.bbclass<br>
&gt; @@ -341,6 +341,14 @@ ssh_disable_dns_lookup () {<br>
&gt;       fi<br>
&gt;  }<br>
&gt;<br>
&gt; +ROOTFS_POSTPROCESS_COMMAND += &quot;add_machine_name_loop_back;&quot;<br>
&gt; +<br>
&gt; +add_machine_name_loop_back() {<br>
&gt; +    if [ -n ${MACHINE} ]; then<br>
&gt; +         echo 127.0.1.1 &quot;       &quot;${MACHINE} &gt;&gt;<br>
&gt; ${IMAGE_ROOTFS}${sysconfdir}/hosts +    fi<br>
&gt; +}<br>
&gt; +<br>
<br>
</div></div>I think in the earlier discussion the conclusion was that we do not want this<br>
enabled by default, which the above will do.<br>
<br>
The question I have is, if this isn&#39;t a good idea, is there a better solution?<br>
<br></blockquote><div><br></div><div>I totally agree with the discussion. Is it a good idea to implement like check made for zap_empty_root_password? <br></div><div>For zap_empty_root_password there is a conditional check if debug-tweaks are enabled then zap_empty_root_password is<br>

</div><div>called. So can I use debug-tweaks to handle add_machine_name_loop_back in the patch? <br></div><div><br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


Cheers,<br>
Paul<br>
<span class=""><font color="#888888"><br>
--<br>
<br>
Paul Eggleton<br>
Intel Open Source Technology Centre<br>
</font></span></blockquote></div><br></div><div class="gmail_extra">Thanks,<br><br></div><div class="gmail_extra">Sujith H<br clear="all"></div><div class="gmail_extra"><br>-- <br>സുജിത് ഹരിദാസന്<br>Bangalore<br>&lt;Project&gt;Contributor to KDE project<br>

<a href="http://fci.wikia.com/wiki/Anti-DRM-Campaign" target="_blank">http://fci.wikia.com/wiki/Anti-DRM-Campaign</a><br>&lt;Blog&gt; <a href="http://sujithh.info" target="_blank">http://sujithh.info</a><br>
</div></div></div>