Setting default mirror to cdn.debian.net in debian template.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
Daniel Baumann 2010-12-28 21:32:51 +01:00 committed by Daniel Lezcano
parent 9116540be4
commit 49a630b8f3

View File

@ -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