From 7c8b87460a379520c237bc2bc37a7afcd2ceb0a0 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 23 May 2017 15:40:18 +0200 Subject: [PATCH] TT#16679 Enable debian-debug repository for Debian/stretch This provides $pkg-dbgsym package support (additionally to $pkg-dbg that still may be present in the main archive). See https://www.debian.org/releases/stretch/amd64/release-notes/ch-whats-new.en.html#debug-archive Change-Id: Ic8b8884556c810cddbcb886de9503812fe8ca957 --- deployment.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deployment.sh b/deployment.sh index b86604b..906b4a0 100644 --- a/deployment.sh +++ b/deployment.sh @@ -1323,6 +1323,7 @@ fi # over official Debian MIRROR="${DEBIAN_REPO_TRANSPORT}://${DEBIAN_REPO_HOST}/debian/" SEC_MIRROR="${DEBIAN_REPO_TRANSPORT}://${DEBIAN_REPO_HOST}/debian-security/" +DBG_MIRROR="${DEBIAN_REPO_TRANSPORT}://${DEBIAN_REPO_HOST}/debian-debug/" if [ -z "${GPG_KEY}" ] ; then KEYRING='/etc/apt/trusted.gpg.d/sipwise.gpg' @@ -1353,6 +1354,10 @@ EOF echo "deb ${SEC_MIRROR} ${DEBIAN_RELEASE}-security main contrib non-free" >> /etc/debootstrap/etc/apt/sources.list echo "deb ${MIRROR} ${DEBIAN_RELEASE}-updates main contrib non-free" >> /etc/debootstrap/etc/apt/sources.list +if [ "$DEBIAN_RELEASE" != "jessie" ] ; then + echo "deb ${DBG_MIRROR} ${DEBIAN_RELEASE}-debug main contrib non-free" >> /etc/debootstrap/etc/apt/sources.list +fi + if [ -n "$PUPPET" ] ; then cat >> /etc/debootstrap/etc/apt/sources.list << EOF deb ${DEBIAN_REPO_TRANSPORT}://${DEBIAN_REPO_HOST}/puppetlabs/ ${DEBIAN_RELEASE} main PC1 dependencies @@ -1593,6 +1598,10 @@ deb ${SEC_MIRROR} ${DEBIAN_RELEASE}-security main contrib non-free deb ${MIRROR} ${DEBIAN_RELEASE}-updates main contrib non-free EOF + if [ "$DEBIAN_RELEASE" != "jessie" ] ; then + echo "deb ${DBG_MIRROR} ${DEBIAN_RELEASE}-debug main contrib non-free" >> "$TARGET/etc/apt/sources.list.d/debian.list" + fi + # 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"