[OE-core] [PATCH 6/8] busybox: remove three hostname test cases
Burton, Ross
ross.burton at intel.com
Fri Nov 23 20:59:47 UTC 2018
On Thu, 22 Nov 2018 at 02:12, ChenQi <Qi.Chen at 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
More information about the Openembedded-core
mailing list