1
0
mirror of synced 2026-02-23 07:01:53 +00:00

Use cdn.debian.net (GeoIP) instead of ftp.debian.org by default

See http://wiki.debian.org/DebianGeoMirror for the details
This commit is contained in:
Axel Beckert
2010-06-02 18:10:07 +02:00
parent 6bc050ae61
commit a6ccc91a5c
3 changed files with 13 additions and 7 deletions

View File

@@ -180,9 +180,13 @@ xen-create-image - Easily create new Xen instances with networking and OpenSSH.
--mirror=url Setup the mirror to use when installing via
debootstrap. (Default value: mirror used in
/etc/apt/sources.list or for Debian
"http://ftp.debian.org/debian/" and for Ubuntu
"http://cdn.debian.net/debian/" and for Ubuntu
"http://archive.ubuntu.com/ubuntu/")
The above mentioned Debian mirror hostname uses GeoIP
to choose a more or less close Debian mirror. See
http://wiki.debian.org/DebianGeoMirror for details.
--template=tmpl
Specify which template file to use when creating the
Xen configuration file.

View File

@@ -49,8 +49,9 @@ full text of the license.
# Fallback to Debian or Ubuntu in case we can't find anything
my $fallback = 'Debian';
# Which mirrors to use if everything else fails
my %fallback_mirror = ( Debian => 'http://ftp.debian.org/debian/',
# Which mirrors to use if everything else fails (cdn.debian.net uses
# GeoIP, see http://wiki.debian.org/DebianGeoMirror)
my %fallback_mirror = ( Debian => 'http://cdn.debian.net/debian/',
Ubuntu => 'http://archive.ubuntu.com/ubuntu/' );
# Which suite to use if everything else fails. For Debian "stable"

View File

@@ -230,12 +230,13 @@ mirror = `xt-guess-suite-and-mirror -m`
# If you like you could use per-distribution mirrors, which will
# be more useful if you're working in an environment where you want
# to regularly use multiple distributions. The following are the
# default values used:
# default values used (for Debian the GeoIP feature is used, see
# http://wiki.debian.org/DebianGeoMirror):
#
# mirror_sarge = http://archive.debian.org/debian
# mirror_lenny = http://ftp.debian.org/debian
# mirror_squeeze = http://ftp.debian.org/debian
# mirror_sid = http://ftp.debian.org/debian
# mirror_lenny = http://cdn.debian.net/debian
# mirror_squeeze = http://cdn.debian.net/debian
# mirror_sid = http://cdn.debian.net/debian
# mirror_dapper = http://archive.ubuntu.com/ubuntu
# mirror_edgy = http://old-releases.ubuntu.com/ubuntu
# mirror_feisty = http://old-releases.ubuntu.com/ubuntu