From 55d481a1aa2958efe4099dce92e964871f72e680 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 20 Jun 2012 09:33:07 +0200 Subject: [PATCH] Clean up etc/hosts --- .../hooks/00-dsa-configure-networking.erb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb b/modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb index 39540467..1c3d4856 100755 --- a/modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb +++ b/modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb @@ -62,6 +62,18 @@ nameserver 206.12.19.20 nameserver 206.12.19.21 EOF +# clean up etc/hosts +cat > $TARGET/etc/hosts +127.0.0.1 localhost + +# The following lines are desirable for IPv6 capable hosts +::1 ip6-localhost ip6-loopback +fe00::0 ip6-localnet +ff00::0 ip6-mcastprefix +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters +EOF + exit 0 # vim:set syn=sh: -- 2.39.2