Use http.debian.net as default mirror
authorMichael Prokop <mika@grml.org>
Mon, 4 Feb 2013 14:56:34 +0000 (15:56 +0100)
committerMichael Prokop <mika@grml.org>
Mon, 4 Feb 2013 14:57:34 +0000 (15:57 +0100)
As stated at http://http.debian.net/ - the advantages of
http.debian.net over cdn.debian.net are for example:

* Mirrors whose copy is not in /debian (e.g. /pub/debian)
* Immediate effect on database changes (no DNS propagation lag)
* Lower chance of inconsistency
* Faster downloads (when APT is used, via parallel downloads)

Acked-by: Alexander Wirt <formorer@grml.org>
Acked-by: Evgeni Golov <evgeni@grml.org>
config
grml-debootstrap
grml-debootstrap.8.txt

diff --git a/config b/config
index f1798fe..c50a300 100644 (file)
--- a/config
+++ b/config
@@ -37,7 +37,7 @@
 
 # Set mirror where packages will be downloaded from.
 # Default: use /etc/debootstrap/etc/apt/sources.list if it exists, else
-# 'http://cdn.debian.net/debian'
+# 'http://http.debian.net/debian'
 # Usage example:
 # MIRROR='ftp://ftp.de.debian.org/debian'
 
index cbd1938..62e2c7e 100755 (executable)
@@ -20,7 +20,7 @@ DEBCONF='yes'
 DEBIAN_FRONTEND='noninteractive'
 DEBOOTSTRAP='debootstrap'
 EXTRAPACKAGES='yes'
-FALLBACK_MIRROR='http://cdn.debian.net/debian'
+FALLBACK_MIRROR='http://http.debian.net/debian'
 FORCE=''
 HOSTNAME='grml'
 INITRD='yes'
@@ -557,7 +557,7 @@ prompt_for_mirror()
   [ $? -eq 0 ] || bailout
 
   if [ "$CHOOSE_MIRROR" = 'net' ] ; then
-     [ -n "$MIRROR" ] || MIRROR='http://cdn.debian.net/debian'
+     [ -n "$MIRROR" ] || MIRROR='http://http.debian.net/debian'
      MIRROR="$(dialog --stdout --title "${PN}" --inputbox \
                "Please enter Debian mirror you would like to use for installing packages." \
                0 0 $MIRROR)"
index 5d18b90..f751cb5 100644 (file)
@@ -319,7 +319,7 @@ relases: lenny, squeeze, wheezy and sid. Usage example: release=sid
   mirror=...
 
 Specify mirror which should be used for apt-get/aptitude instead
-of the default one (http://cdn.debian.net/debian).
+of the default one (http://http.debian.net/debian).
 Usage example: mirror=ftp://ftp.tugraz.at/mirror/debian
 
   password=...
@@ -356,7 +356,7 @@ anymore unless you really know what you are doing. Choose Debian 6.0 (squeeze)
 or Debian 7.0 (wheezy) instead.
 
 Notice that you need to specify a mirror providing the lenny release, the
-default (http://cdn.debian.net/debian) doesn't provide it any longer nowadays.
+default (http://http.debian.net/debian) doesn't provide it any longer nowadays.
 Set the mirror to e.g. http://archive.debian.org/debian/ if you don't have
 your own lenny mirror.