From be95738739a5e879c2f185bc0a1a8ef76a138dea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Ollivier?= Date: Sun, 18 Jan 2015 15:39:59 +0100 Subject: [PATCH] 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 --- elements/debian/root.d/08-debootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/debian/root.d/08-debootstrap b/elements/debian/root.d/08-debootstrap index 07632f751..946dd61eb 100755 --- a/elements/debian/root.d/08-debootstrap +++ b/elements/debian/root.d/08-debootstrap @@ -66,7 +66,7 @@ EOF fi # 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" sudo sh -c "http_proxy=$http_proxy chroot ${TARGET_ROOT} apt-get install -y $apt_get_bp_extra_opts $CLOUD_INIT_PACKAGES"