X-Git-Url: https://piware.de/gitweb/?a=blobdiff_plain;f=makechroot;h=55dfa4120f03558b2a51c008bf5e0a47ef4166b6;hb=80076fd3b218a594e248aab049372953b256ecf3;hp=7188ad2a6cf294ffb9bc5d68b6d60580a7b722a5;hpb=0823a4c6f5c364bc6869f756e806365edbf23884;p=bin.git diff --git a/makechroot b/makechroot index 7188ad2..55dfa41 100755 --- a/makechroot +++ b/makechroot @@ -10,6 +10,7 @@ MIRROR="$3" mkdir -p "$DIR" debootstrap "$DIST" "$DIR" "$MIRROR" +chroot $DIR apt-get install locales # debian_chroot echo $DIST > $DIR/etc/debian_chroot @@ -40,6 +41,10 @@ EOF fi # apt sources +if [ "$MIRROR" != "${MIRROR%file://}" ]; then + MIRROR=http://archive.ubuntu.com/ubuntu +fi + cat < $DIR/etc/apt/sources.list deb $MIRROR $DIST main restricted universe multiverse deb-src $MIRROR $DIST main restricted universe multiverse @@ -54,5 +59,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 fakeroot