add Debian 11 'bullseye' to Linux supported list

This commit is contained in:
Christer Edwards
2021-12-22 18:35:49 -07:00
parent a115ba5b87
commit 2f59bdecec
3 changed files with 20 additions and 5 deletions

View File

@@ -391,7 +391,7 @@ debootstrap_release() {
fi
case "${LINUX_FLAVOR}" in
bionic|stretch|buster)
bionic|stretch|buster|bullseye)
info "Increasing APT::Cache-Start"
echo "APT::Cache-Start 251658240;" > "${bastille_releasesdir}"/${DIR_BOOTSTRAP}/etc/apt/apt.conf.d/00aptitude
;;
@@ -556,6 +556,13 @@ debian_buster|buster|debian-buster)
ARCH_BOOTSTRAP="amd64"
debootstrap_release
;;
debian_bullseye|bullseye|debian-bullseye)
PLATFORM_OS="Debian/Linux"
LINUX_FLAVOR="bullseye"
DIR_BOOTSTRAP="Debian11"
ARCH_BOOTSTRAP="amd64"
debootstrap_release
;;
*)
usage
;;

View File

@@ -658,6 +658,10 @@ if [ -n "${LINUX_JAIL}" ]; then
## check for FreeBSD releases name
NAME_VERIFY=buster
;;
debian_bullseye|bullseye|debian-bullseye)
## check for FreeBSD releases name
NAME_VERIFY=bullseye
;;
*)
error_notify "Unknown Linux."
usage
@@ -726,6 +730,10 @@ if [ -z "${EMPTY_JAIL}" ]; then
NAME_VERIFY=Debian10
validate_release
;;
debian_bullseye|bullseye|debian-bullseye)
NAME_VERIFY=Debian11
validate_release
;;
*)
error_notify "Unknown Release."
usage

View File

@@ -235,9 +235,9 @@ Ubuntu_1804|Ubuntu_2004|UBUNTU_1804|UBUNTU_2004)
NAME_VERIFY=$(echo "${TARGET}" | grep -iwE '(Ubuntu_1804)$|(Ubuntu_2004)$' | sed 's/UBUNTU/Ubuntu/g;s/ubuntu/Ubuntu/g')
destroy_rel
;;
Debian9|Debian10|DEBIAN9|DEBIAN10)
Debian9|Debian10|Debian11|DEBIAN9|DEBIAN10|DEBIAN11)
## check for Linux releases
NAME_VERIFY=$(echo "${TARGET}" | grep -iwE '(Debian9)$|(Debian10)$' | sed 's/DEBIAN/Debian/g')
NAME_VERIFY=$(echo "${TARGET}" | grep -iwE '(Debian9)$|(Debian10)$|(Debian11)$' | sed 's/DEBIAN/Debian/g')
destroy_rel
;;
*)