From: Simon Deziel Date: Sun, 19 Oct 2014 02:20:23 +0000 (-0400) Subject: Create the apt proxy in the cache instead of the 1st container X-Git-Tag: lxc-1.1.0.alpha3~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df7216f664570dd6fb4b013e7aef802ac47da2af;p=thirdparty%2Flxc.git Create the apt proxy in the cache instead of the 1st container This addresses https://github.com/lxc/lxc/issues/280. Signed-off-by: Simon Deziel Acked-by: Stéphane Graber --- diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in index 776835772..bbe7f7d6f 100644 --- a/templates/lxc-ubuntu.in +++ b/templates/lxc-ubuntu.in @@ -259,13 +259,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