]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
always provide a default mirror for debootstraping Ubuntu 924/head
authorEvgeni Golov <evgeni@debian.org>
Sat, 26 Mar 2016 09:52:32 +0000 (10:52 +0100)
committerEvgeni Golov <evgeni@debian.org>
Sat, 26 Mar 2016 09:56:46 +0000 (10:56 +0100)
debootstrap sometimes selects the wrong mirror due to [1]

[1] https://bugs.debian.org/819300

Signed-off-by: Evgeni Golov <evgeni@debian.org>
templates/lxc-ubuntu.in

index ff66485ec7fcff374138c2b62c2a8d2eb3fc2a4b..2e1eb55cc863fe8bd74ce6e1d14723eb5bc820c0 100644 (file)
@@ -39,6 +39,8 @@ export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
 
 set -e
 
+MIRROR=${MIRROR:-http://archive.ubuntu.com/ubuntu}
+SECURITY_MIRROR=${SECURITY_MIRROR:-http://security.ubuntu.com/ubuntu}
 LOCALSTATEDIR="@LOCALSTATEDIR@"
 LXC_TEMPLATE_CONFIG="@LXCTEMPLATECONFIG@"
 # Allows the lxc-cache directory to be set by environment variable