Merge pull request #593 from gqgunhed/gqgunhed-linux-releases

Updated supported Linux releases
This commit is contained in:
Christer Edwards
2023-07-14 16:34:24 -06:00
committed by GitHub
3 changed files with 29 additions and 13 deletions
+12 -5
View File
@@ -399,7 +399,7 @@ debootstrap_release() {
fi fi
case "${LINUX_FLAVOR}" in case "${LINUX_FLAVOR}" in
bionic|stretch|buster|bullseye) bionic|focal|jammy|buster|bullseye|bookworm)
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
;; ;;
@@ -567,10 +567,10 @@ ubuntu_focal|focal|ubuntu-focal)
ARCH_BOOTSTRAP=${HW_MACHINE_ARCH_LINUX} ARCH_BOOTSTRAP=${HW_MACHINE_ARCH_LINUX}
debootstrap_release debootstrap_release
;; ;;
debian_stretch|stretch|debian-stretch) ubuntu_jammy|jammy|ubuntu-jammy)
PLATFORM_OS="Debian/Linux" PLATFORM_OS="Ubuntu/Linux"
LINUX_FLAVOR="stretch" LINUX_FLAVOR="jammy"
DIR_BOOTSTRAP="Debian9" DIR_BOOTSTRAP="Ubuntu_2204"
ARCH_BOOTSTRAP=${HW_MACHINE_ARCH_LINUX} ARCH_BOOTSTRAP=${HW_MACHINE_ARCH_LINUX}
debootstrap_release debootstrap_release
;; ;;
@@ -588,6 +588,13 @@ debian_bullseye|bullseye|debian-bullseye)
ARCH_BOOTSTRAP=${HW_MACHINE_ARCH_LINUX} ARCH_BOOTSTRAP=${HW_MACHINE_ARCH_LINUX}
debootstrap_release debootstrap_release
;; ;;
debian_bookworm|bookworm|debian-bookworm)
PLATFORM_OS="Debian/Linux"
LINUX_FLAVOR="bookworm"
DIR_BOOTSTRAP="Debian12"
ARCH_BOOTSTRAP=${HW_MACHINE_ARCH_LINUX}
debootstrap_release
;;
*) *)
usage usage
;; ;;
+13 -4
View File
@@ -683,9 +683,9 @@ if [ -n "${LINUX_JAIL}" ]; then
## check for FreeBSD releases name ## check for FreeBSD releases name
NAME_VERIFY=ubuntu_focal NAME_VERIFY=ubuntu_focal
;; ;;
debian_stretch|stretch|debian-stretch) jammy|ubuntu_jammy|ubuntu-jammy)
## check for FreeBSD releases name ## check for FreeBSD releases name
NAME_VERIFY=stretch NAME_VERIFY=ubuntu_jammy
;; ;;
debian_buster|buster|debian-buster) debian_buster|buster|debian-buster)
## check for FreeBSD releases name ## check for FreeBSD releases name
@@ -695,6 +695,10 @@ if [ -n "${LINUX_JAIL}" ]; then
## check for FreeBSD releases name ## check for FreeBSD releases name
NAME_VERIFY=bullseye NAME_VERIFY=bullseye
;; ;;
debian_bookworm|bookworm|debian-bookworm)
## check for FreeBSD releases name
NAME_VERIFY=bookworm
;;
*) *)
error_notify "Unknown Linux." error_notify "Unknown Linux."
usage usage
@@ -755,8 +759,9 @@ if [ -z "${EMPTY_JAIL}" ]; then
NAME_VERIFY=Ubuntu_2004 NAME_VERIFY=Ubuntu_2004
validate_release validate_release
;; ;;
debian_stretch|stretch|debian-stretch) ubuntu_jammy|jammy|ubuntu-jammy)
NAME_VERIFY=Debian9 UBUNTU="1"
NAME_VERIFY=Ubuntu_2204
validate_release validate_release
;; ;;
debian_buster|buster|debian-buster) debian_buster|buster|debian-buster)
@@ -767,6 +772,10 @@ if [ -z "${EMPTY_JAIL}" ]; then
NAME_VERIFY=Debian11 NAME_VERIFY=Debian11
validate_release validate_release
;; ;;
debian_bookworm|bookworm|debian-bookworm)
NAME_VERIFY=Debian12
validate_release
;;
*) *)
error_notify "Unknown Release." error_notify "Unknown Release."
usage usage
+4 -4
View File
@@ -249,14 +249,14 @@ current-build-latest|current-BUILD-LATEST|CURRENT-BUILD-LATEST)
NAME_VERIFY=$(echo "${TARGET}" | grep -iwE '(current-build-latest)$' | sed 's/CURRENT/current/;s/build/BUILD/g;s/latest/LATEST/g') NAME_VERIFY=$(echo "${TARGET}" | grep -iwE '(current-build-latest)$' | sed 's/CURRENT/current/;s/build/BUILD/g;s/latest/LATEST/g')
destroy_rel destroy_rel
;; ;;
Ubuntu_1804|Ubuntu_2004|UBUNTU_1804|UBUNTU_2004) Ubuntu_1804|Ubuntu_2004|Ubuntu_2204|UBUNTU_1804|UBUNTU_2004|UBUNTU_2204)
## 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)$|(Ubuntu_2204)$' | sed 's/UBUNTU/Ubuntu/g;s/ubuntu/Ubuntu/g')
destroy_rel destroy_rel
;; ;;
Debian9|Debian10|Debian11|DEBIAN9|DEBIAN10|DEBIAN11) Debian10|Debian11|Debian12|DEBIAN10|DEBIAN11|DEBIAN12)
## check for Linux releases ## check for Linux releases
NAME_VERIFY=$(echo "${TARGET}" | grep -iwE '(Debian9)$|(Debian10)$|(Debian11)$' | sed 's/DEBIAN/Debian/g') NAME_VERIFY=$(echo "${TARGET}" | grep -iwE '(Debian10)$|(Debian11)$|(Debian12)$' | sed 's/DEBIAN/Debian/g')
destroy_rel destroy_rel
;; ;;
*) *)