Add debian stretch/buster, small changes

This commit is contained in:
JRGTH
2021-08-07 13:17:32 -04:00
parent 9967a56e64
commit e92451b37c
2 changed files with 30 additions and 8 deletions

View File

@@ -370,9 +370,12 @@ debootstrap_release() {
error_exit "Bootstrap failed."
fi
if [ "${UBUNTU_FLAVOR}" = "bionic" ]; then
case "${UBUNTU_FLAVOR}" in
bionic|stretch|buster)
info "Increasing APT::Cache-Start"
echo "APT::Cache-Start 251658240;" > "${bastille_releasesdir}"/${DIR_BOOTSTRAP}/etc/apt/apt.conf.d/00aptitude
fi
;;
esac
info "Bootstrap successful."
info "See 'bastille --help' for available commands."
@@ -519,6 +522,20 @@ ubuntu_focal|focal|ubuntu-focal)
ARCH_BOOTSTRAP="amd64"
debootstrap_release
;;
debian_stretch|stretch|debian-stretch)
PLATFORM_OS="Debian/Linux"
UBUNTU_FLAVOR="stretch"
DIR_BOOTSTRAP="Debian9"
ARCH_BOOTSTRAP="amd64"
debootstrap_release
;;
debian_buster|buster|debian-buster)
PLATFORM_OS="Debian/Linux"
UBUNTU_FLAVOR="buster"
DIR_BOOTSTRAP="Debian10"
ARCH_BOOTSTRAP="amd64"
debootstrap_release
;;
*)
usage
;;