Hi,

please accept the following patch to set the default mirror to cdn.debian.net in debian template.

Regards,
Daniel

--
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baum...@progress-technologies.net
Internet:       http://people.progress-technologies.net/~daniel.baumann/

>From d72fa4e63c40321b7e3ed6586ba66e19e529f996 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel.baum...@progress-technologies.net>
Date: Mon, 13 Dec 2010 23:04:20 +0100
Subject: [PATCH 2/4] Setting default mirror to cdn.debian.net in debian template.

---
 templates/lxc-debian.in |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in
index 463d87f..8ec0c29 100644
--- a/templates/lxc-debian.in
+++ b/templates/lxc-debian.in
@@ -21,6 +21,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 SUITE=${SUITE:-squeeze}
+MIRROR=${MIRROR:-http://cdn.debian.net/debian}
 
 configure_debian()
 {
@@ -112,7 +113,7 @@ openssh-server
     echo "Downloading debian minimal ..."
     debootstrap --verbose --variant=minbase --arch=$arch \
 	--include $packages \
-	"$SUITE" "$cache/partial-$SUITE-$arch" http://ftp.debian.org/debian
+	"$SUITE" "$cache/partial-$SUITE-$arch" $MIRROR
     if [ $? -ne 0 ]; then
 	echo "Failed to download the rootfs, aborting."
 	return 1
-- 
1.7.2.3


------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to