MT#6171 Use our own Debian mirror

Using debian.sipwise.com which is a CNAME record pointing to
deb.sipwise.com prevents us from getting higher apt-pinning
for official Debian packages which are mirrored on our own
server.

Related commit history: 8832daa7e a1b3eb0fd 8400101b6
ksolomko/vlan
Michael Prokop 11 years ago
parent 446f1c33fd
commit d6a9b7f8fd

@ -806,6 +806,10 @@ fi
# otherwise e2fsck fails with "need terminal for interactive repairs" # otherwise e2fsck fails with "need terminal for interactive repairs"
echo FSCK=no >>/etc/debootstrap/config echo FSCK=no >>/etc/debootstrap/config
# otherwise we can't use packages with missing key http://deb.sipwise.com/autobuild/680FBA8A.asc
# from our own $MIRROR - note: switch to --keyring=KEYRING
echo "DPKG_OPTIONS='-o APT::Get::AllowUnauthenticated=true -o aptitude::Cmdline::ignore-trust-violations=yes'" >> /etc/debootstrap/config
# package selection # package selection
cat > /etc/debootstrap/packages << EOF cat > /etc/debootstrap/packages << EOF
# addons: packages which d-i installs but debootstrap doesn't # addons: packages which d-i installs but debootstrap doesn't
@ -856,13 +860,15 @@ puppet
EOF EOF
fi fi
# lenny is no longer available on default Debian mirrors # NOTE: we use the debian.sipwise.com CNAME by intention here
# to avoid conflicts with apt-pinning, preferring deb.sipwise.com
# over official Debian
case "$DEBIAN_RELEASE" in case "$DEBIAN_RELEASE" in
lenny) lenny)
MIRROR='http://archive.debian.org/debian/' MIRROR='http://debian.sipwise.com/debian-lenny/'
;; ;;
*) *)
MIRROR='http://debian.inode.at/debian/' MIRROR='http://debian.sipwise.com/debian/'
;; ;;
esac esac

Loading…
Cancel
Save