Set http_proxy to retrieve the signed Release file

This commit adds http_proxy=$http_proxy to use apt-get update through a
http-proxy.

Change-Id: Iee589f6d11b84991512493d22f0e3dbfe60736ec
Closes-Bug: #1412314
This commit is contained in:
Cédric Ollivier 2015-01-18 15:39:59 +01:00
parent af4b290328
commit be95738739

View File

@ -66,7 +66,7 @@ EOF
fi fi
# Need to update to retrieve the signed Release file # Need to update to retrieve the signed Release file
sudo chroot ${TARGET_ROOT} apt-get update sudo sh -c "http_proxy=$http_proxy chroot ${TARGET_ROOT} apt-get update"
CLOUD_INIT_PACKAGES="cloud-init cloud-utils cloud-initramfs-growroot" CLOUD_INIT_PACKAGES="cloud-init cloud-utils cloud-initramfs-growroot"
sudo sh -c "http_proxy=$http_proxy chroot ${TARGET_ROOT} apt-get install -y $apt_get_bp_extra_opts $CLOUD_INIT_PACKAGES" sudo sh -c "http_proxy=$http_proxy chroot ${TARGET_ROOT} apt-get install -y $apt_get_bp_extra_opts $CLOUD_INIT_PACKAGES"