]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
netbase: add entry to /etc/hosts according to /etc/hostname
authorChen Qi <Qi.Chen@windriver.com>
Mon, 26 Nov 2018 06:56:38 +0000 (14:56 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 27 Nov 2018 22:12:27 +0000 (22:12 +0000)
commit21e57d70f4c6780829728e6e987e111e8b38cabb
tree19aa30782d737805c4440cea8b0c945e48899b10
parent21387613fec1a8c142ed48d7a74d587e205b0c98
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