mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-09 11:07:56 +00:00
Setting default mirror to cdn.debian.net in debian template.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
parent
9116540be4
commit
49a630b8f3
@ -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
|
|||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user