netbase: add ipv6 host to /etc/hosts

There is a script in netbase, debian/netbase.postinst, which create
/etc/hosts, but it is not called, so ipv6 host is missing.

now copy them from Ubuntu; and add localhost as alias of ::1

(From OE-Core rev: 4ae53085b173ed57acacebcd3e199abe2cb77a60)

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Roy Li 2016-01-27 16:00:19 +08:00 committed by Richard Purdie
parent 93fcee6882
commit 7881c02aa7
1 changed files with 6 additions and 0 deletions

View File

@ -1,2 +1,8 @@
127.0.0.1 localhost.localdomain localhost
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters