aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-02-16 20:45:57 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-02-16 20:45:57 -0200
commit613707a83fcadac0f67dc89d2c5b7fda387d7855 (patch)
tree96c9ecd073fa4b7b36d079a0830b043c0aada206
parent04ca4fde21a693ab997c161231b3dcf652d1ec55 (diff)
downloadhydra-613707a83fcadac0f67dc89d2c5b7fda387d7855.tar.gz
hydra-613707a83fcadac0f67dc89d2c5b7fda387d7855.tar.bz2
Create two 127.0.0.1 host entries to avoid facter fqdn issue
-rwxr-xr-xshare/hydractl/provision3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 19daad7..2822864 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -71,7 +71,8 @@ mount none -t proc /tmp/debootstrap/proc/
mount -o bind /dev/ /tmp/debootstrap/dev
cp -L /etc/resolv.conf /tmp/debootstrap/etc
echo $hostname.$domain > /tmp/debootstrap/etc/hostname
-echo "127.0.0.1 localhost $hostname $hostname.$domain" >> /tmp/debootstrap/etc/hosts
+echo "127.0.0.1 $hostname $hostname.$domain" >> /tmp/debootstrap/etc/hosts
+echo "127.0.0.1 localhost" >> /tmp/debootstrap/etc/hosts
echo LANG=C > /tmp/debootstrap/etc/default/locale
# Initial upgrade.