From: martin@piware.de <> Date: Mon, 15 Jan 2007 07:37:55 +0000 (+0100) Subject: makechroot: fix nonbreakable spaces X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=commitdiff_plain;h=9094406c4fdc2f83351bd5660b180ba703ee18eb makechroot: fix nonbreakable spaces --- diff --git a/makechroot b/makechroot index 405a461..1028c21 100755 --- a/makechroot +++ b/makechroot @@ -3,7 +3,8 @@ DIST="$1" DIR="$2" MIRROR="$3" -debootstrap "$DIST" "$DIR" $MIRROR +mkdir -p "$DIR" +debootstrap "$DIST" "$DIR" "$MIRROR" # debian_chroot echo $DIST > $DIR/etc/debian_chroot @@ -12,7 +13,7 @@ echo $DIST > $DIR/etc/debian_chroot perl -naF: -e 'print if $F[2] >= 1000 and $F[2] < 2000' /etc/passwd >> $DIR/etc/passwd # locale -chroot $DIR locale-gen $LANG +chroot $DIR locale-gen $LANG # bind mounts if ! grep -q $DIR /etc/fstab; then @@ -45,5 +46,5 @@ EOF chroot $DIR apt-get update # common packages for development -chroot $DIR apt-get install -y build-essential devscripts fakeroot +chroot $DIR apt-get install -y build-essential devscripts fakeroot