]> piware.de Git - bin.git/commitdiff
makechroot: create hosts file
authorMartin Pitt <martin.pitt@ubuntu.com>
Sat, 5 Jan 2008 20:08:57 +0000 (21:08 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Sat, 5 Jan 2008 20:08:57 +0000 (21:08 +0100)
makechroot

index c9ad108c0f2d6c3c4c5d875f0cfeeca3026ed0c8..7188ad2a6cf294ffb9bc5d68b6d60580a7b722a5 100755 (executable)
@@ -14,6 +14,9 @@ debootstrap "$DIST" "$DIR" "$MIRROR"
 # debian_chroot
 echo $DIST > $DIR/etc/debian_chroot
 
+# hosts
+echo "127.0.0.1 localhost.localdomain localhost" > $DIR/etc/hosts
+
 # users
 perl -naF: -e 'print if $F[2] >= 1000 and $F[2] < 2000' /etc/passwd >> $DIR/etc/passwd