]> code.ossystems Code Review - openembedded-core.git/commit
netbase: add entry to /etc/hosts according to /etc/hostname
authorChen Qi <Qi.Chen@windriver.com>
Fri, 30 Nov 2018 02:24:41 +0000 (10:24 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Jan 2019 12:36:02 +0000 (12:36 +0000)
commit06669cf85c46240901db86e22297b0814e76437e
treec6ad52a420d69fcbd3f0b2c14b44cebe817e45ee
parenta477c323008719ccc4772769c1075fb44448f706
netbase: add entry to /etc/hosts according to /etc/hostname

We default hostname to ${MACHINE}, but it's not in /etc/hosts,
resulting in commands like `hostname -f' failing due to lack
of entry.

So add entry to /etc/hosts according to /etc/hostname. We do
this via pkg_postinst because hostname is set in base-files
recipe.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/netbase/netbase_5.4.bb