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 fi
case "${LINUX_FLAVOR}" in case "${LINUX_FLAVOR}" in
bionic|stretch|buster) bionic|stretch|buster|bullseye)
info "Increasing APT::Cache-Start" info "Increasing APT::Cache-Start"
echo "APT::Cache-Start 251658240;" > "${bastille_releasesdir}"/${DIR_BOOTSTRAP}/etc/apt/apt.conf.d/00aptitude 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" ARCH_BOOTSTRAP="amd64"
debootstrap_release debootstrap_release
;; ;;
debian_bullseye|bullseye|debian-bullseye)
PLATFORM_OS="Debian/Linux"
LINUX_FLAVOR="bullseye"
DIR_BOOTSTRAP="Debian11"
ARCH_BOOTSTRAP="amd64"
debootstrap_release
;;
*) *)
usage usage
;; ;;

View File

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

View File

@@ -231,13 +231,13 @@ current-build-latest|current-BUILD-LATEST|CURRENT-BUILD-LATEST)
destroy_rel destroy_rel
;; ;;
Ubuntu_1804|Ubuntu_2004|UBUNTU_1804|UBUNTU_2004) Ubuntu_1804|Ubuntu_2004|UBUNTU_1804|UBUNTU_2004)
## check for Linux releases ## check for Linux releases
NAME_VERIFY=$(echo "${TARGET}" | grep -iwE '(Ubuntu_1804)$|(Ubuntu_2004)$' | sed 's/UBUNTU/Ubuntu/g;s/ubuntu/Ubuntu/g') NAME_VERIFY=$(echo "${TARGET}" | grep -iwE '(Ubuntu_1804)$|(Ubuntu_2004)$' | sed 's/UBUNTU/Ubuntu/g;s/ubuntu/Ubuntu/g')
destroy_rel destroy_rel
;; ;;
Debian9|Debian10|DEBIAN9|DEBIAN10) Debian9|Debian10|Debian11|DEBIAN9|DEBIAN10|DEBIAN11)
## check for Linux releases ## 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 destroy_rel
;; ;;
*) *)