From: Martin Pitt Date: Sat, 5 Jan 2008 20:08:57 +0000 (+0100) Subject: makechroot: create hosts file X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=0823a4c6f5c364bc6869f756e806365edbf23884;p=bin.git makechroot: create hosts file --- diff --git a/makechroot b/makechroot index c9ad108..7188ad2 100755 --- a/makechroot +++ b/makechroot @@ -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