From: martin@piware.de <> Date: Tue, 22 Jul 2008 14:18:12 +0000 (+0200) Subject: makechroot: do not put file:// mirrors into chroot apt sources X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=7280f91aefb42b65bd50762635a7035f762c59d3;p=bin.git makechroot: do not put file:// mirrors into chroot apt sources --- diff --git a/makechroot b/makechroot index f233032..2add2b9 100755 --- a/makechroot +++ b/makechroot @@ -41,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