Visit http://http.debian.net/ for details.
Also drop the "mirror selected via geo-ip" from the comments as
it's missleading if the deb line gets replaced for RELEASE builds
with snapshot.debian.org.
# CHROOT_INSTALL="/etc/grml/fai/chroot_install"
## adjust if necessary (defaults to /grml/grml-live):
## OUTPUT="/srv/grml-live"
- FAI_DEBOOTSTRAP="wheezy http://cdn.debian.net/debian/"
+ FAI_DEBOOTSTRAP="wheezy http://http.debian.net/debian/"
# ARCH="amd64"
CLASSES="GRMLBASE,GRML_FULL,AMD64"
EOF
First of all create the chroot using debootstrap:
BASECHROOT='/tmp/basefile'
- debootstrap squeeze "$BASECHROOT" http://cdn.debian.net/debian
+ debootstrap squeeze "$BASECHROOT" http://http.debian.net/debian
tar -C "$BASECHROOT" --exclude='var/cache/apt/archives/*.deb' -zcf base.tar.gz ./
[TIP]
[...]
APT_PROXY="http://localhost:3142/"
[...]
- FAI_DEBOOTSTRAP="squeeze http://localhost:3142/cdn.debian.net/debian squeeze main contrib non-free"
+ FAI_DEBOOTSTRAP="squeeze http://localhost:3142/http.debian.net/debian squeeze main contrib non-free"
Make sure apt-cacher-ng is running ('/etc/init.d/apt-cacher-ng restart').
That's it. All downloaded files will be cached in /var/cache/apt-cacher-ng then.
-# official debian repository (mirror selected via geo-ip):
- deb http://cdn.debian.net/debian/ etch main contrib non-free
- deb-src http://cdn.debian.net/debian/ etch main contrib non-free
+# official debian repository:
+ deb http://http.debian.net/debian/ etch main contrib non-free
+ deb-src http://http.debian.net/debian/ etch main contrib non-free
# official debian repository:
# deb http://ftp.debian.org/debian/ etch main contrib non-free
-# official debian repository (mirror selected via geo-ip):
- deb http://cdn.debian.net/debian/ lenny main contrib non-free
- deb-src http://cdn.debian.net/debian/ lenny main contrib non-free
+# official debian repository:
+ deb http://http.debian.net/debian/ lenny main contrib non-free
+ deb-src http://http.debian.net/debian/ lenny main contrib non-free
# security updates:
deb http://security.debian.org/ lenny/updates main contrib
-# official debian repository (mirror selected via geo-ip):
- deb http://cdn.debian.net/debian/ sid main contrib non-free
- deb-src http://cdn.debian.net/debian/ sid main contrib non-free
+# official debian repository:
+ deb http://http.debian.net/debian/ sid main contrib non-free
+ deb-src http://http.debian.net/debian/ sid main contrib non-free
# official debian repository:
# deb http://ftp.debian.org/debian/ sid main contrib non-free
-# official debian repository (mirror selected via geo-ip):
- deb http://cdn.debian.net/debian/ squeeze main contrib non-free
- deb-src http://cdn.debian.net/debian/ squeeze main contrib non-free
+# official debian repository:
+ deb http://http.debian.net/debian/ squeeze main contrib non-free
+ deb-src http://http.debian.net/debian/ squeeze main contrib non-free
# security updates:
deb http://security.debian.org/ squeeze/updates main contrib
-# official debian repository (mirror selected via geo-ip):
- deb http://cdn.debian.net/debian/ stable main contrib non-free
- deb-src http://cdn.debian.net/debian/ stable main contrib non-free
+# official debian repository:
+ deb http://http.debian.net/debian/ stable main contrib non-free
+ deb-src http://http.debian.net/debian/ stable main contrib non-free
# security updates:
deb http://security.debian.org/ stable/updates main contrib
-# official debian repository (mirror selected via geo-ip):
- deb http://cdn.debian.net/debian/ testing main contrib non-free
- deb-src http://cdn.debian.net/debian/ testing main contrib non-free
+# official debian repository:
+ deb http://http.debian.net/debian/ testing main contrib non-free
+ deb-src http://http.debian.net/debian/ testing main contrib non-free
# security updates:
deb http://security.debian.org/ testing/updates main contrib
-# official debian repository (mirror selected via geo-ip):
- deb http://cdn.debian.net/debian/ unstable main contrib non-free
- deb-src http://cdn.debian.net/debian/ unstable main contrib non-free
+# official debian repository:
+ deb http://http.debian.net/debian/ unstable main contrib non-free
+ deb-src http://http.debian.net/debian/ unstable main contrib non-free
# official debian repository:
# deb http://ftp.debian.org/debian/ unstable main contrib non-free
-# official debian repository (mirror selected via geo-ip):
- deb http://cdn.debian.net/debian/ wheezy main contrib non-free
- deb-src http://cdn.debian.net/debian/ wheezy main contrib non-free
+# official debian repository:
+ deb http://http.debian.net/debian/ wheezy main contrib non-free
+ deb-src http://http.debian.net/debian/ wheezy main contrib non-free
# security updates:
deb http://security.debian.org/ wheezy/updates main contrib
# use snapshot.debian.org based on build date for release
if ifclass RELEASE ; then
set -u
- perl -pi -e 'BEGIN { $d="'$(date +%Y%m%d)'"; } s#^(\s+)(deb.* )(.*://cdn.*?)\s+(\w+)\s+(.*)$#$1$2http://snapshot.debian.org/archive/debian/$d/ $4 $5#' \
+ perl -pi -e 'BEGIN { $d="'$(date +%Y%m%d)'"; } s#^(\s+)(deb.* )(.*://http.debian.net.*?)\s+(\w+)\s+(.*)$#$1$2http://snapshot.debian.org/archive/debian/$d/ $4 $5#' \
"${target}/etc/apt/sources.list.d/debian.list"
fi
# Which Debian suite and which mirror do you want to use for debootstrapping?
# Usage: "<suite> <mirror>"
-# FAI_DEBOOTSTRAP="squeeze http://cdn.debian.net/debian"
+# FAI_DEBOOTSTRAP="squeeze http://http.debian.net/debian"
# Do you want to use a local mirror (like NFS)?
# If so specify the directory where debian/ is available:
# first sync from a mirror near to you!
# please ask the mirror admin(s) for permission before downloading
# several GB of data!
-update_from cdn.debian.net
+update_from http.debian.net
# since this mirror is not always up to date, sync the rest from an official mirror
-# update_from cdn.debian.net
+# update_from http.debian.net
# even one should not mirror the security site, but I will do it.
echo "------------------ create mirror for debian-security ------------------"
Name: debian
-Method: http://cdn.debian.net/debian/
+Method: http://http.debian.net/debian/
# Method: http://localhost/debian/
# Fallback: http://snapshot.debian.net/archive/2007/04/02/debian/
# generate nfsroot configuration for FAI on the fly
if [ -z "$FAI_DEBOOTSTRAP" ] ; then
- FAI_DEBOOTSTRAP="$SUITE http://cdn.debian.net/debian"
+ FAI_DEBOOTSTRAP="$SUITE http://http.debian.net/debian"
fi
if [ -z "$FAI_DEBOOTSTRAP_OPTS" ] ; then
target= target partition/directory of the new Debian system, e.g.: target=/dev/sda1
grub= where to install grub to, e.g.: grub=/dev/sda
release= specify release of new Debian system (default is stable), e.g.: release=sid
- mirror= specify mirror for apt-get/aptitude, e,g.: mirror=http://cdn.debian.net/debian
+ mirror= specify mirror for apt-get/aptitude, e,g.: mirror=http://http.debian.net/debian
password= set passwort of user root without prompting for it, e.g.: password=AiTh5ahn
Usage example for automatic installation:
- debian2hd target=/dev/sda1 grub=/dev/sda mirror=http://cdn.debian.net/debian password=foobar
+ debian2hd target=/dev/sda1 grub=/dev/sda mirror=http://http.debian.net/debian password=foobar
See http://grml.org/grml-debootstrap/ for more information.