From 5badc280aeffcb32063a86ef83f34641aba63dba Mon Sep 17 00:00:00 2001 From: Andrew Donnellan Date: Fri, 14 Jul 2023 17:45:37 +1000 Subject: tools/create-image.sh: preserve proxy variables when running debootstrap create-image.sh uses sudo to invoke debootstrap, which by default drops existing environment variables. Tell sudo to preserve http_proxy, https_proxy, ftp_proxy and no_proxy variables so that the user's proxy settings are respected by debootstrap. Suggested-by: Russell Currey Signed-off-by: Andrew Donnellan --- tools/create-image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/create-image.sh b/tools/create-image.sh index 2d33f8b81..9e4fe95bb 100755 --- a/tools/create-image.sh +++ b/tools/create-image.sh @@ -144,7 +144,7 @@ fi if [ $DEBARCH == "riscv64" ]; then DEBOOTSTRAP_PARAMS="--keyring /usr/share/keyrings/debian-ports-archive-keyring.gpg --exclude firmware-atheros $DEBOOTSTRAP_PARAMS http://deb.debian.org/debian-ports" fi -sudo debootstrap $DEBOOTSTRAP_PARAMS +sudo --preserve-env=http_proxy,https_proxy,ftp_proxy,no_proxy debootstrap $DEBOOTSTRAP_PARAMS # 2. debootstrap stage: only necessary if target != host architecture -- cgit mrf-deployment