TT#5444 Debian stretch doesn't have security support (yet)

Change-Id: I421772b913a17e1ef370ce44a99b778716419fe7
changes/11/9411/3
Alexander Lutay 9 years ago
parent d8b509407c
commit 24852d04eb

@ -1293,10 +1293,18 @@ logit "Setting up /etc/debootstrap/etc/apt/sources.list"
cat > /etc/debootstrap/etc/apt/sources.list << EOF cat > /etc/debootstrap/etc/apt/sources.list << EOF
# Set up via deployment.sh for grml-debootstrap usage # Set up via deployment.sh for grml-debootstrap usage
deb ${MIRROR} ${DEBIAN_RELEASE} main contrib non-free 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 EOF
# drop this once Debian/stretch has security support (AKA released as stable)
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" >> /etc/debootstrap/etc/apt/sources.list
fi
echo "deb ${MIRROR} ${DEBIAN_RELEASE}-updates main contrib non-free" >> /etc/debootstrap/etc/apt/sources.list
if [ -n "$PUPPET" ] ; then if [ -n "$PUPPET" ] ; then
cat >> /etc/debootstrap/etc/apt/sources.list << EOF cat >> /etc/debootstrap/etc/apt/sources.list << EOF
deb ${DEBIAN_REPO_TRANSPORT}://${DEBIAN_REPO_HOST}/puppetlabs/ ${DEBIAN_RELEASE} main PC1 dependencies deb ${DEBIAN_REPO_TRANSPORT}://${DEBIAN_REPO_HOST}/puppetlabs/ ${DEBIAN_RELEASE} main PC1 dependencies

Loading…
Cancel
Save