X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=68514e09014c57da6d01a78ab06f805c50ed1860;hp=80b45ab0ac4740aeecf46d44f7463126d14a4885;hb=e92841fb80810e2fb0154d8b7fdcf75fb620310d;hpb=c7ddca2d38ad6698a115de7f4d6a47f60d5ba48b 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 } # }}}