]> code.ossystems Code Review - openembedded-core.git/commitdiff
netbase: add ipv6 host to /etc/hosts
authorRoy Li <rongqing.li@windriver.com>
Wed, 27 Jan 2016 08:00:19 +0000 (16:00 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 29 Jan 2016 18:14:53 +0000 (18:14 +0000)
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

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/netbase/netbase/hosts

index 2f332451b50a27dd3177bb12619f43a26bde713c..b94f414d5c8e64da389b0bc55f9e92849164d037 100644 (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