]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Create the apt proxy in the cache instead of the 1st container
authorSimon Deziel <simon.deziel@gmail.com>
Sun, 19 Oct 2014 02:20:23 +0000 (22:20 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 25 Nov 2014 22:12:29 +0000 (17:12 -0500)
This addresses https://github.com/lxc/lxc/issues/280.

Signed-off-by: Simon Deziel <simon@sdeziel.info>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-ubuntu.in

index 5f2ca6b42c4094f3a6a39f71bf4edf722d5f0030..d1798f5590c91094817a632c08be04ac96d8fb5d 100644 (file)
@@ -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