Bug#616522: debootstrap: please use better default mirror (cdn.debian.net?)
A Sábado 05 Março 2011 08:18:33 Lars Wirzenius você escreveu:
> Package: debootstrap
> Version: 1.0.26
> Severity: minor
>
> debootstrap currently defaults to ftp.us.debian.org for the mirror.
> This is not a particularly good default for anyone outside the US.
>
> cdn.debian.net would be a better default, since it automatically
> chooses the mirror closest to the user. Would it be possible to default
> to that?
[...]
Here it goes to be reviewed.
--
Melhores cumprimentos/Best regards,
Miguel Figueiredo
http://www.DebianPT.org
diff --git a/debian/changelog b/debian/changelog
index e6b00da..4c82880 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,8 @@
debootstrap (1.0.29) UNRELEASED; urgency=low
+ [Miguel Figueiredo]
+ * Default to cdn.debian.net as mirror. Closes: #616522.
+
[ Joey Hess ]
* Support bootstrapping oldstable. (Lenny could already be bootstrapped
using that suite name.)
diff --git a/debootstrap b/debootstrap
index 2fe633a..452cdbe 100755
--- a/debootstrap
+++ b/debootstrap
@@ -27,7 +27,7 @@ USE_COMPONENTS=main
KEYRING=""
VARIANT=""
-DEF_MIRROR="http://ftp.us.debian.org/debian"
+DEF_MIRROR="http://cdn.debian.net/debian"
export LANG USE_COMPONENTS
umask 022
diff --git a/debootstrap.8 b/debootstrap.8
index 4026143..87c9603 100644
--- a/debootstrap.8
+++ b/debootstrap.8
@@ -156,14 +156,14 @@ Read the private key from file
.PP
To setup a \fIwheezy\fR system:
.PP
-# debootstrap wheezy ./wheezy-chroot http://ftp.us.debian.org/debian
+# debootstrap wheezy ./wheezy-chroot http://cdn.debian.net/debian
.PP
# debootstrap wheezy ./wheezy-chroot file:///PATH_TO_LOCAL_MIRROR/debian
.PP
Full process to create a complete Debian installation of \fIsid\fR (unstable):
.PP
main # cd / ; mkdir /sid-root
- main # debootstrap sid /sid-root http://ftp.us.debian.org/debian/
+ main # debootstrap sid /sid-root http://cdn.debian.net/debian/
[ ... watch it download the whole system ]
main # echo "proc /sid-root/proc proc defaults 0 0" >> /etc/fstab
main # mount proc /sid-root/proc -t proc
Reply to: