Adds: Debian 9 (Stretch) as a release for linux jails

This commit is contained in:
Yaazkal
2021-07-23 12:07:21 -05:00
parent 7c8c324a17
commit f6b2e57051
2 changed files with 15 additions and 0 deletions

View File

@@ -478,6 +478,13 @@ ubuntu_focal|focal|ubuntu-focal)
ensure_debootstrap ensure_debootstrap
debootstrap --foreign --arch=amd64 --no-check-gpg focal "${bastille_releasesdir}"/Ubuntu_2004 debootstrap --foreign --arch=amd64 --no-check-gpg focal "${bastille_releasesdir}"/Ubuntu_2004
;; ;;
debian_stretch|stretch|debian-stretch)
check_linux_prerequisites
ensure_debootstrap
debootstrap --foreign --arch=amd64 --no-check-gpg stretch "${bastille_releasesdir}"/Debian9
echo "Increasing APT::Cache-Start"
echo "APT::Cache-Start 251658240;" > "${bastille_releasesdir}"/Debian9/etc/apt/apt.conf.d/00aptitude
;;
*) *)
usage usage
;; ;;

View File

@@ -593,6 +593,10 @@ 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)
## check for FreeBSD releases name
NAME_VERIFY=stretch
;;
*) *)
error_notify "Unknown Linux." error_notify "Unknown Linux."
usage usage
@@ -651,6 +655,10 @@ if [ -z "${EMPTY_JAIL}" ]; then
NAME_VERIFY=Ubuntu_2004 NAME_VERIFY=Ubuntu_2004
validate_release validate_release
;; ;;
debian_stretch|stretch|debian-stretch)
NAME_VERIFY=Debian9
validate_release
;;
*) *)
error_notify "Unknown Release." error_notify "Unknown Release."
usage usage