Commit 49a630b8 by Daniel Baumann Committed by Daniel Lezcano

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

parent 9116540b
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
SUITE=${SUITE:-squeeze} SUITE=${SUITE:-squeeze}
MIRROR=${MIRROR:-http://cdn.debian.net/debian}
configure_debian() configure_debian()
{ {
...@@ -112,7 +113,7 @@ openssh-server ...@@ -112,7 +113,7 @@ openssh-server
echo "Downloading debian minimal ..." echo "Downloading debian minimal ..."
debootstrap --verbose --variant=minbase --arch=$arch \ debootstrap --verbose --variant=minbase --arch=$arch \
--include $packages \ --include $packages \
"$SUITE" "$cache/partial-$SUITE-$arch" http://ftp.debian.org/debian "$SUITE" "$cache/partial-$SUITE-$arch" $MIRROR
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Failed to download the rootfs, aborting." echo "Failed to download the rootfs, aborting."
return 1 return 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment