From da4b25db3850662caa95d08a9ddd19b15f39b9a8 Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Thu, 26 Nov 2015 14:15:39 +0100 Subject: [PATCH] MT#16683 Enable repository jessie-security for upcoming mr4.2 Change-Id: I7f767833b6a7e6d9365bee0013021b768cdd9e61 --- deployment.sh | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/deployment.sh b/deployment.sh index 81f2f22..b6963f6 100755 --- a/deployment.sh +++ b/deployment.sh @@ -1258,6 +1258,7 @@ fi # to avoid conflicts with apt-pinning, preferring deb.sipwise.com # over official Debian MIRROR="${SIPWISE_REPO_TRANSPORT}://${DEBIAN_REPO_HOST}/debian/" +SEC_MIRROR="${SIPWISE_REPO_TRANSPORT}://${DEBIAN_REPO_HOST}/debian-security/" KEYRING='/etc/apt/trusted.gpg.d/sipwise.gpg' set_deploy_status "debootstrap" @@ -1267,19 +1268,10 @@ logit "Setting up /etc/debootstrap/etc/apt/sources.list" cat > /etc/debootstrap/etc/apt/sources.list << EOF # Set up via deployment.sh for grml-debootstrap usage deb ${MIRROR} ${DEBIAN_RELEASE} main contrib non-free +deb ${SEC_MIRROR} ${DEBIAN_RELEASE}-security main contrib non-free +deb ${MIRROR} ${DEBIAN_RELEASE}-updates main contrib non-free EOF -# drop this once Debian/jessie has security support (AKA released as stable) -if [ "$DEBIAN_RELEASE" = "jessie" ] ; then - echo "Warning: not enabling security repository for $DEBIAN_RELEASE" - logit "Warning: not enabling security repository for $DEBIAN_RELEASE" -else - SEC_MIRROR="${SIPWISE_REPO_TRANSPORT}://${DEBIAN_REPO_HOST}/debian-security/" - echo "deb ${SEC_MIRROR} ${DEBIAN_RELEASE}-security main contrib non-free" >> /etc/debootstrap/etc/apt/sources.list -fi - -echo "deb ${MIRROR} ${DEBIAN_RELEASE}-updates main contrib non-free" >> /etc/debootstrap/etc/apt/sources.list - # GRUB versions until Debian/wheezy generate an invalid device.map # entry if /dev/disk/by-id/lvm-pv-uuid-* is present, resulting in # a GRUB installation failing with "error: no such disk" during boot. @@ -1502,18 +1494,7 @@ EOF # Debian repositories deb ${MIRROR} ${DEBIAN_RELEASE} main contrib non-free -EOF - - # drop this once Debian/jessie has security support - if [ -n "$SEC_MIRROR" ] ; then - echo "deb ${SEC_MIRROR} ${DEBIAN_RELEASE}-security main contrib non-free" \ - >> $TARGET/etc/apt/sources.list.d/debian.list - else - echo "Warning: security mirror variable SEC_MIRROR is unset, not enabling security repository for $DEBIAN_RELEASE" - logit "Warning: security mirror variable SEC_MIRROR is unset, not enabling security repository for $DEBIAN_RELEASE" - fi - -cat >> $TARGET/etc/apt/sources.list.d/debian.list << EOF +deb ${SEC_MIRROR} ${DEBIAN_RELEASE}-security main contrib non-free deb ${MIRROR} ${DEBIAN_RELEASE}-updates main contrib non-free EOF