From c34c8361da29a6ff9d701d056d467e8cd5f6bf6a Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sun, 28 Feb 2016 11:50:09 +0100 Subject: [PATCH] Httpredir works only on Debian --- debootstrap.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debootstrap.sh b/debootstrap.sh index b4615173c1..4077ed8920 100644 --- a/debootstrap.sh +++ b/debootstrap.sh @@ -99,7 +99,8 @@ fi if [ ! -f "$cache_fname" ]; then # debootstrap base system -debootstrap --include=openssh-server,debconf-utils --arch=armhf --foreign $RELEASE $DEST/cache/sdcard/ http://httpredir.debian.org/debian/ | dialog --backtitle "$backtitle" --title "Debootstrap $DISTRIBUTION $RELEASE base system to image template ..." --progressbox 20 70 +[[ $DISTRIBUTION == "Debian" ]] && local redir="http://httpredir.debian.org/debian/" +debootstrap --include=openssh-server,debconf-utils --arch=armhf --foreign $RELEASE $DEST/cache/sdcard/ $redir | dialog --backtitle "$backtitle" --title "Debootstrap $DISTRIBUTION $RELEASE base system to image template ..." --progressbox 20 70 # we need emulator for second stage cp /usr/bin/qemu-arm-static $DEST/cache/sdcard/usr/bin/