From: Evgeni Golov Date: Sat, 26 Mar 2016 09:52:32 +0000 (+0100) Subject: always provide a default mirror for debootstraping Ubuntu X-Git-Tag: lxc-2.0.0.rc14~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F924%2Fhead;p=thirdparty%2Flxc.git always provide a default mirror for debootstraping Ubuntu debootstrap sometimes selects the wrong mirror due to [1] [1] https://bugs.debian.org/819300 Signed-off-by: Evgeni Golov --- diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in index ff66485ec..2e1eb55cc 100644 --- a/templates/lxc-ubuntu.in +++ b/templates/lxc-ubuntu.in @@ -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