diff options
| author | Andrew Donnellan <ajd@linux.ibm.com> | 2023-07-14 17:45:37 +1000 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2023-07-24 08:22:47 +0000 |
| commit | 5badc280aeffcb32063a86ef83f34641aba63dba (patch) | |
| tree | fccff1853a4a3ab1b8fcc4820cdabb49fbe00a31 /tools/create-image.sh | |
| parent | 8d5edebd4a3f329fb8056df863f7d4c8b57c97b0 (diff) | |
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 <ruscur@russell.cc>
Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Diffstat (limited to 'tools/create-image.sh')
| -rwxr-xr-x | tools/create-image.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
