aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-technologies.net>2010-12-28 21:32:51 +0100
committerDaniel Lezcano <dlezcano@fr.ibm.com>2010-12-28 21:32:51 +0100
commit49a630b8f39731511a1a0bfde890803644a2c596 (patch)
treea206e8db1b4bb5628282b4790761e8c06bbca76f
parentSetting default suite to squeeze in debian template. (diff)
downloadlxc-49a630b8f39731511a1a0bfde890803644a2c596.tar.gz
lxc-49a630b8f39731511a1a0bfde890803644a2c596.tar.bz2
lxc-49a630b8f39731511a1a0bfde890803644a2c596.zip
Setting default mirror to cdn.debian.net in debian template.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
-rw-r--r--templates/lxc-debian.in3
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