From fa3cf24a00d2b6924fa54dbd6cf25d28f652936b Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Sat, 18 Oct 2014 22:20:23 -0400 Subject: [PATCH] Create the apt proxy in the cache instead of the 1st container MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This addresses https://github.com/lxc/lxc/issues/280. Signed-off-by: Simon Deziel Acked-by: Stéphane Graber --- templates/lxc-ubuntu.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in index 5f2ca6b42..d1798f559 100644 --- a/templates/lxc-ubuntu.in +++ b/templates/lxc-ubuntu.in @@ -224,13 +224,13 @@ choose_container_proxy() write_sourceslist() { - # $1 => path to the rootfs + # $1 => path to the partial cache or the rootfs # $2 => architecture we want to add # $3 => whether to use the multi-arch syntax or not if [ -n "$APT_PROXY" ]; then - mkdir -p $rootfs/etc/apt/apt.conf.d - cat > $rootfs/etc/apt/apt.conf.d/70proxy << EOF + mkdir -p $1/etc/apt/apt.conf.d + cat > $1/etc/apt/apt.conf.d/70proxy << EOF Acquire::http::Proxy "$APT_PROXY" ; EOF fi -- 2.47.2