TT#42867 Modify /etc/hosts file

1. 'localhost' has to be resolved to ipv4 only not ipv6.
2. There should be 'hostname.' with dot record.

Change-Id: I9f34f45b00453746b254f41494d7652a10de0d04
changes/11/23211/2
Mykola Malkov 8 years ago
parent 8d8580e3e5
commit 1fcd92128e

@ -1250,9 +1250,9 @@ grml-chroot $TARGET hostname -F /etc/hostname
# make sure installations of packages works, will be overridden later again
cat > $TARGET/etc/hosts << EOF
127.0.0.1 localhost
127.0.0.1 $HOSTNAME
127.0.0.1 ${HOSTNAME}. ${HOSTNAME}
::1 localhost ip6-localhost ip6-loopback
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes

Loading…
Cancel
Save