From 4743c1a8b34d49391f8d5ebeb17666f115aacebd Mon Sep 17 00:00:00 2001 From: Robert Nelson <robertcnelson@gmail.com> Date: Wed, 31 Dec 2014 12:28:57 -0600 Subject: [PATCH] chroot: update /etc/hosts, this is what jessie does on a clean install Signed-off-by: Robert Nelson <robertcnelson@gmail.com> --- scripts/chroot.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/chroot.sh b/scripts/chroot.sh index 27ea8aaac..93a504b2f 100755 --- a/scripts/chroot.sh +++ b/scripts/chroot.sh @@ -332,8 +332,13 @@ if [ "${apt_proxy}" ] ; then sudo mv /tmp/apt.conf ${tempdir}/etc/apt/apt.conf fi -echo "127.0.0.1 localhost" > /tmp/hosts -echo "127.0.1.1 ${rfs_hostname}" >> /tmp/hosts +echo "127.0.0.1 localhost" > /tmp/hosts +echo "127.0.1.1 ${rfs_hostname}.localdomain ${rfs_hostname}" >> /tmp/hosts +echo "" >> /tmp/hosts +echo "# The following lines are desirable for IPv6 capable hosts" >> /tmp/hosts +echo "::1 localhost ip6-localhost ip6-loopback" >> /tmp/hosts +echo "ff02::1 ip6-allnodes" >> /tmp/hosts +echo "ff02::2 ip6-allrouters" >> /tmp/hosts sudo mv /tmp/hosts ${tempdir}/etc/hosts echo "${rfs_hostname}" > /tmp/hostname -- GitLab