]> gitweb.fluxo.info Git - hydra.git/commitdiff
Create two 127.0.0.1 host entries to avoid facter fqdn issue
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 16 Feb 2011 22:45:57 +0000 (20:45 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 16 Feb 2011 22:45:57 +0000 (20:45 -0200)
share/hydractl/provision

index 19daad760ab3b9f5d665c9ac8efc3be19d3aa6e3..2822864bc411d57bcbbd44dc4d0ab1fbaccb577f 100755 (executable)
@@ -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.