From a2d9c6ce17dab51d6e83f08b1d42f5b228ad8413 Mon Sep 17 00:00:00 2001 From: Holger Paradies Date: Sat, 27 Mar 2021 21:39:18 +0100 Subject: Sources.list bullseye enable security --- auto/config | 2 +- config/chroot_local-hooks/00-sources.list | 5 +++++ config/chroot_local-includes/etc/apt/sources.list | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/auto/config b/auto/config index a588400..b918195 100755 --- a/auto/config +++ b/auto/config @@ -40,7 +40,7 @@ buster) ;; bullseye) KDEBOOTSTRAPOPTIONS="--include=apt-transport-https,ca-certificates,gpg,gpg-agent,mime-support --exclude=nano" - KSECURITY="false" + KSECURITY="true" ;; *) KDEBOOTSTRAPOPTIONS="--include=apt-transport-https,ca-certificates,gpg,gpg-agent,mime-support --exclude=nano" diff --git a/config/chroot_local-hooks/00-sources.list b/config/chroot_local-hooks/00-sources.list index 88be772..880e38a 100755 --- a/config/chroot_local-hooks/00-sources.list +++ b/config/chroot_local-hooks/00-sources.list @@ -17,6 +17,11 @@ fi sed -i -e "s|@DISTRIBUTION@|${LB_DISTRIBUTION}|g" /etc/apt/sources.list +# old names +case "${LB_DISTRIBUTION}" in + wheezy|jessie|stretch|buster) sed -i -e "s|-security||g" /etc/apt/sources.list ;; +esac + # fix for archive if [ "$LB_DISTRIBUTION" = "wheezy" ]; then sed -i -e "s|ftp.de.debian.org/debian wheezy|archive.debian.org/debian wheezy|g" /etc/apt/sources.list diff --git a/config/chroot_local-includes/etc/apt/sources.list b/config/chroot_local-includes/etc/apt/sources.list index 236ae7a..3593810 100644 --- a/config/chroot_local-includes/etc/apt/sources.list +++ b/config/chroot_local-includes/etc/apt/sources.list @@ -7,6 +7,6 @@ deb http://ftp.de.debian.org/debian @DISTRIBUTION@ main contrib non-free deb-src http://ftp.de.debian.org/debian @DISTRIBUTION@ main contrib non-free # Debian @DISTRIBUTION@ Updates -deb http://security.debian.org @DISTRIBUTION@/updates main contrib non-free -deb-src http://security.debian.org @DISTRIBUTION@/updates main contrib non-free +deb http://security.debian.org @DISTRIBUTION@-security/updates main contrib non-free +deb-src http://security.debian.org @DISTRIBUTION@-security/updates main contrib non-free -- cgit v1.0