On Thu, 22 Nov 2018 at 02:12, ChenQi <qi.c...@windriver.com> wrote: > >> 2) hostname may set to some value, e.g. qemux86-64, which is not an entry > >> in /etc/hosts > >> This results in lookup failure when using `hostname -f' as there's no > >> entry in /etc/hosts. > > Let's fix the hostname setup so hosts is correct too. > > OK. > Currently, we set hostname to ${MACHINE}. To ensure it's also an entry > in /etc/hosts, it seems that we have to default it to 'localhost'. I'm > going to test with this change. If you have other candidates, please let > me know.
What I mean is when we change hostname, we should update hosts so ${MACHINE} is an alias for localhost. Like my local machine has: 127.0.0.1 localhost 127.0.1.1 flashheart.burtonini.com flashheart Ross -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core