From 1fcd92128e0a9fc5ac00d3ee5d8e7a6190805502 Mon Sep 17 00:00:00 2001 From: Mykola Malkov Date: Tue, 4 Sep 2018 12:51:10 +0200 Subject: [PATCH] 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 --- templates/scripts/includes/deployment.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/scripts/includes/deployment.sh b/templates/scripts/includes/deployment.sh index e896f4d..a563295 100755 --- a/templates/scripts/includes/deployment.sh +++ b/templates/scripts/includes/deployment.sh @@ -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