Fix handling of /etc/hosts
[grml-debootstrap.git] / grml-debootstrap
index c90b1b0..69f2cf0 100755 (executable)
@@ -779,7 +779,6 @@ preparechroot() {
   # provide system's /etc/hosts to the target:
   if ! [ -f "$MNTPOINT/etc/hosts" ] ; then
      cp $VERBOSE /etc/hosts $MNTPOINT/etc/hosts
-     sed -i "s#127.0.0.1 .*#127.0.0.1       localhost  $HOSTNAME#" /etc/hosts
   fi
 
   # setup default locales