From 660ae219dc498840a7d4c38a371429d6a613431e Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 23 Jan 2019 13:47:42 +0100 Subject: [PATCH] Try to support debootstrapping from https sources on debian.org infra --- modules/schroot/files/setup-dchroot | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/schroot/files/setup-dchroot b/modules/schroot/files/setup-dchroot index 1c90409be..7f372fe9e 100755 --- a/modules/schroot/files/setup-dchroot +++ b/modules/schroot/files/setup-dchroot @@ -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 \ -- 2.20.1