X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=chroot-script;h=68514e09014c57da6d01a78ab06f805c50ed1860;hb=dfd1e1b592e986979934c8f40dcced69893dd07d;hp=90d3f233763b8262cfbf0a4e74a003a425c1cc2e;hpb=218bf66658420382b5cfa9597e1c430523e50ca7;p=grml-debootstrap.git diff --git a/chroot-script b/chroot-script index 90d3f23..68514e0 100755 --- a/chroot-script +++ b/chroot-script @@ -2,7 +2,7 @@ # Filename: /etc/debootstrap/chroot-script # Purpose: script executed in chroot when installing Debian via grml-debootstrap # Authors: grml-team (grml.org), (c) Michael Prokop -# Bug-Reports: see http://grml.org/bugs/ +# Bug-Reports: see https://grml.org/bugs/ # License: This file is licensed under the GPL v2. ################################################################################ # GRML_CHROOT_SCRIPT_MARKER - do not remove this line unless you want to keep @@ -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 } # }}}