[lxc-devel] [lxc/master] always provide a default mirror for debootstraping Ubuntu

evgeni on Github lxc-bot at linuxcontainers.org
Sat Mar 26 09:58:06 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 446 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160326/616bee85/attachment.bin>
-------------- next part --------------
From 8bc8fd9a2c50798f9555804ae186a5f35586680d Mon Sep 17 00:00:00 2001
From: Evgeni Golov <evgeni at debian.org>
Date: Sat, 26 Mar 2016 10:52:32 +0100
Subject: [PATCH] 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 <evgeni at debian.org>
---
 templates/lxc-ubuntu.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in
index ff66485..2e1eb55 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


More information about the lxc-devel mailing list