]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
always provide a default mirror for debootstraping Ubuntu
authorEvgeni Golov <evgeni@debian.org>
Sat, 26 Mar 2016 09:52:32 +0000 (10:52 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 17 Nov 2016 23:06:47 +0000 (18:06 -0500)
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 f9b6cfdc4fb16bf1bb30a02c04758c16df84292e..8e8856d0038c86a28dedc379499776b107226042 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@"