Try to support debootstrapping from https sources on debian.org infra
authorPeter Palfrader <peter@palfrader.org>
Wed, 23 Jan 2019 12:47:42 +0000 (13:47 +0100)
committerPeter Palfrader <peter@palfrader.org>
Wed, 23 Jan 2019 12:47:42 +0000 (13:47 +0100)
modules/schroot/files/setup-dchroot

index 1c90409..7f372fe 100755 (executable)
@@ -353,8 +353,17 @@ case "$suite" in
     ;;
 esac
 
+bindir=$(mktemp -d)
+cleanup+=("rm -r $bindir")
+cat > "$bindir/wget" << 'EOF'
+#!/bin/sh
+exec /usr/bin/wget --ca-directory=/etc/ssl/ca-global "$@"
+EOF
+chmod +x "$bindir/wget"
+
 set -x
-debootstrap \
+PATH="$bindir:$PATH" \
+  debootstrap \
     --keyring "$keyring" \
     --include="$include" \
     --variant=buildd \