From: Michael Prokop Date: Fri, 12 Jul 2019 07:39:05 +0000 (+0200) Subject: Use new security.debian.org repository layout for bullseye and newer X-Git-Tag: v0.90~10 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=e92841fb80810e2fb0154d8b7fdcf75fb620310d;ds=sidebyside Use new security.debian.org repository layout for bullseye and newer Quoting from https://lists.debian.org/debian-devel-announce/2019/07/msg00004.html: | over the last years we had people getting confused over -updates | (recommended updates) and /updates (security updates). Starting | with Debian 11 "bullseye" we have therefore renamed the suite including | the security updates to -security. | | An entry in sources.list should look like | | deb http://security.debian.org/debian-security bullseye-security main | | For previous releases the name will not change. --- diff --git a/chroot-script b/chroot-script index 80b45ab..68514e0 100755 --- a/chroot-script +++ b/chroot-script @@ -113,10 +113,16 @@ chrootmirror() { # add security.debian.org: case "$RELEASE" in unstable|sid|lenny) ;; # no security pool available - *) + squeeze|wheezy|jessie|stretch|buster) echo "Adding security.debian.org to sources.list." echo "deb http://security.debian.org ${RELEASE}/updates $COMPONENTS" >> /etc/apt/sources.list ;; + *) + # bullseye and newer releases use a different repository layout, see + # https://lists.debian.org/debian-devel-announce/2019/07/msg00004.html + echo "Adding security.debian.org/debian-security to sources.list." + echo "deb http://security.debian.org/debian-security ${RELEASE}-security $COMPONENTS" >> /etc/apt/sources.list + ;; esac } # }}}