Commit df7216f6 by Simon Deziel Committed by Stéphane Graber

Create the apt proxy in the cache instead of the 1st container

parent edf77341
...@@ -259,13 +259,13 @@ choose_container_proxy() ...@@ -259,13 +259,13 @@ choose_container_proxy()
write_sourceslist() write_sourceslist()
{ {
# $1 => path to the rootfs # $1 => path to the partial cache or the rootfs
# $2 => architecture we want to add # $2 => architecture we want to add
# $3 => whether to use the multi-arch syntax or not # $3 => whether to use the multi-arch syntax or not
if [ -n "$APT_PROXY" ]; then if [ -n "$APT_PROXY" ]; then
mkdir -p $rootfs/etc/apt/apt.conf.d mkdir -p $1/etc/apt/apt.conf.d
cat > $rootfs/etc/apt/apt.conf.d/70proxy << EOF cat > $1/etc/apt/apt.conf.d/70proxy << EOF
Acquire::http::Proxy "$APT_PROXY" ; Acquire::http::Proxy "$APT_PROXY" ;
EOF EOF
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment