From f6b2e57051d3bbf812a54088054c1d5df6f0aad2 Mon Sep 17 00:00:00 2001 From: Yaazkal Date: Fri, 23 Jul 2021 12:07:21 -0500 Subject: [PATCH] Adds: Debian 9 (Stretch) as a release for linux jails --- usr/local/share/bastille/bootstrap.sh | 7 +++++++ usr/local/share/bastille/create.sh | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/usr/local/share/bastille/bootstrap.sh b/usr/local/share/bastille/bootstrap.sh index dbb0b54a..48e1f1f5 100644 --- a/usr/local/share/bastille/bootstrap.sh +++ b/usr/local/share/bastille/bootstrap.sh @@ -478,6 +478,13 @@ ubuntu_focal|focal|ubuntu-focal) ensure_debootstrap 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 ;; diff --git a/usr/local/share/bastille/create.sh b/usr/local/share/bastille/create.sh index fb3023bc..3b5b22a5 100644 --- a/usr/local/share/bastille/create.sh +++ b/usr/local/share/bastille/create.sh @@ -593,6 +593,10 @@ if [ -n "${LINUX_JAIL}" ]; then ## check for FreeBSD releases name NAME_VERIFY=ubuntu_focal ;; + debian_stretch|stretch|debian-stretch) + ## check for FreeBSD releases name + NAME_VERIFY=stretch + ;; *) error_notify "Unknown Linux." usage @@ -651,6 +655,10 @@ if [ -z "${EMPTY_JAIL}" ]; then NAME_VERIFY=Ubuntu_2004 validate_release ;; + debian_stretch|stretch|debian-stretch) + NAME_VERIFY=Debian9 + validate_release + ;; *) error_notify "Unknown Release." usage