Merge "add no_proxy when debootstrap trying to use proxy"
This commit is contained in:
commit
36c3d1ff50
1 changed files with 2 additions and 1 deletions
|
@ -46,6 +46,7 @@ DIB_DEBIAN_COMPONENTS=${DIB_DEBIAN_COMPONENTS:-main}
|
|||
DIB_DEBOOTSTRAP_EXTRA_ARGS=${DIB_DEBOOTSTRAP_EXTRA_ARGS:-}
|
||||
DEBOOTSTRAP_TARBALL=$DIB_IMAGE_CACHE/debootstrap-${DISTRO_NAME}-${DIB_RELEASE}-${ARCH}-${KERNEL}.tar.gz
|
||||
http_proxy=${http_proxy:-}
|
||||
no_proxy=${no_proxy:-}
|
||||
|
||||
if [ -n "$DIB_OFFLINE" -o -n "${DIB_DEBIAN_USE_DEBOOTSTRAP_CACHE:-}" ] && [ -f $DEBOOTSTRAP_TARBALL ] ; then
|
||||
echo $DEBOOTSTRAP_TARBALL found in cache. Using.
|
||||
|
@ -60,7 +61,7 @@ else
|
|||
# Have to --include=python because of dib-run-parts
|
||||
# Have to --include=sudo for pre-install.d use of sudoers files
|
||||
# Have to --include=busybox because initramfs needs it
|
||||
sudo sh -c "http_proxy=$http_proxy debootstrap --verbose \
|
||||
sudo sh -c "http_proxy=$http_proxy no_proxy=$no_proxy debootstrap --verbose \
|
||||
--variant=minbase \
|
||||
--include=python,sudo,busybox,$KERNEL_PACKAGE \
|
||||
--components=${DIB_DEBIAN_COMPONENTS} \
|
||||
|
|
Loading…
Reference in a new issue