]> piware.de Git - bin.git/commitdiff
makechroot: do not put file:// mirrors into chroot apt sources
authormartin@piware.de <>
Tue, 22 Jul 2008 14:18:12 +0000 (16:18 +0200)
committermartin@piware.de <>
Tue, 22 Jul 2008 14:18:12 +0000 (16:18 +0200)
makechroot

index f2330327046a18a6e67fe6c712f2962bf212b9c7..2add2b9b71632fe0b66b4d2fd1f4a78dea978623 100755 (executable)
@@ -41,6 +41,10 @@ EOF
 fi
 
 # apt sources
+if [ "$MIRROR" != "${MIRROR%file://}" ]; then
+    MIRROR=http://archive.ubuntu.com/ubuntu
+fi
+
 cat <<EOF > $DIR/etc/apt/sources.list
 deb     $MIRROR $DIST main restricted universe multiverse
 deb-src $MIRROR $DIST main restricted universe multiverse