From ba081beb916d0b74e9c17844838275cf781bbcd7 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 9 Nov 2016 14:40:12 +0100 Subject: [PATCH] TT#5444 Debian stretch doesn't have security support (yet) While setting up sources.list for bootstrap stage has been take care of in commit 24852d04eb77 already, the sources.list generation before running ngcp-installer needs to be adjusted as well. Change-Id: I94f1cb8057c544e9df678a4f008abf713fa83da3 --- deployment.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/deployment.sh b/deployment.sh index 9ea0060..8c58309 100755 --- a/deployment.sh +++ b/deployment.sh @@ -1561,10 +1561,17 @@ EOF # Debian repositories 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 +if [ "$DEBIAN_RELEASE" = "stretch" ] ; then + echo "Warning: not enabling security repository for $DEBIAN_RELEASE" + logit "Warning: not enabling security repository for $DEBIAN_RELEASE" +else + echo "deb ${SEC_MIRROR} ${DEBIAN_RELEASE}-security main contrib non-free" >> "$TARGET"/etc/apt/sources.list.d/debian.list +fi + +echo "deb ${MIRROR} ${DEBIAN_RELEASE}-updates main contrib non-free" >> "$TARGET"/etc/apt/sources.list.d/debian.list + # support testing rc releases without providing an according installer package ahead if [ -n "$AUTOBUILD_RELEASE" ] ; then echo "Running installer with sources.list for $DEBIAN_RELEASE + autobuild release-$AUTOBUILD_RELEASE"