From 0b8eb4a3e41e6fd69f5da44f733b887eb5ed9f33 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sat, 30 Mar 2019 14:05:43 -0400 Subject: [PATCH] initial buster support --- fai/config/basefiles/mk-basefile | 2 +- fai/config/class/50-host-classes | 25 +++++----- .../sources.list.d/stretch.list/BUSTER_FREE | 11 ++++ .../sources.list.d/stretch.list/BUSTER_LINODE | 11 ++++ .../stretch.list/BUSTER_NONFREE | 11 ++++ faiserver-setup | 50 +++++++++++-------- 6 files changed, 74 insertions(+), 36 deletions(-) create mode 100644 fai/config/files/etc/apt/sources.list.d/stretch.list/BUSTER_FREE create mode 100644 fai/config/files/etc/apt/sources.list.d/stretch.list/BUSTER_LINODE create mode 100644 fai/config/files/etc/apt/sources.list.d/stretch.list/BUSTER_NONFREE diff --git a/fai/config/basefiles/mk-basefile b/fai/config/basefiles/mk-basefile index 89360bd..4037d09 100755 --- a/fai/config/basefiles/mk-basefile +++ b/fai/config/basefiles/mk-basefile @@ -28,7 +28,7 @@ EXCLUDE_SQUEEZE=isc-dhcp-client,isc-dhcp-common,info EXCLUDE_WHEEZY=info EXCLUDE_JESSIE=info EXCLUDE_STRETCH=info -EXCLUDE_BUSTER= +EXCLUDE_BUSTER=info EXCLUDE_SID= EXCLUDE_BELENOS=dhcp3-client,dhcp3-common,info diff --git a/fai/config/class/50-host-classes b/fai/config/class/50-host-classes index ed1d352..3767bd3 100755 --- a/fai/config/class/50-host-classes +++ b/fai/config/class/50-host-classes @@ -23,20 +23,19 @@ # Debian stable basefile gets built by faisetup and gets used otherwise. # With X suffix, means it has gone through the dirinstall process and has eXtra # things installed, to speed up installation. -# STRETCH64, XENIAL64, BELENOS64, FLIDAS64, FLIDAS64BIG +# STRETCH64, BUSTER64, XENIAL64, FLIDAS64, FLIDAS64BIG # # The distro subvol name, we can add as many of these as we want: -# VOL_TESTING, VOL_STRETCH, VOL_XENIAL, VOL_BELENOS, VOL_FLIDAS, VOL_STRETCH_BOOTSTRAP -# Using VOL_STRETCH_BOOTSTRAP sets up the install to act like a pxe rom if -# grub sets a specific var. +# VOL_TESTING, VOL_STRETCH, VOL_BUSTER, VOL_XENIAL, VOL_FLIDAS, +# VOL_STRETCH_BOOTSTRAP. Using VOL_STRETCH_BOOTSTRAP sets up the +# install to act like a pxe rom if grub sets a specific var. # -# The apt sources files we want, -# STRETCH_FREE, STRETCH_NONFREE, TESTING_FREE, TESTING_NONFREE, -# XENIAL_FREE, FLIDAS, BELENOS, STRETCH_LINODE. +# The apt sources files we want, STRETCH_FREE, STRETCH_NONFREE, +# BUSTER_FREE, BUSTER_NONFREE, TESTING_FREE, TESTING_NONFREE, +# XENIAL_FREE, FLIDAS, STRETCH_LINODE. # # It's all a little redundant in some cases, but it keeps things -# simpler. Belenos is broken right now, planning to remove it once -# flidas is released and rms has upgraded. +# simpler. # # # Other notable classes: @@ -80,11 +79,11 @@ if [[ ! -e /a/bin/fai/fai-wrapper || $FAI_ACTION == dirinstall ]]; then # flidas _) echo UBUNTU FLIDAS64 VOL_FLIDAS FLIDAS ;; # stretch - _) echo DEBIAN STRETCH64 VOL_STRETCH STRETCH_NONFREE ;; + _) echo DEBIAN STRETCH64 VOL_STRETCH STRETCH_FREE ;; + # buster + _) echo DEBIAN BUSTER64 VOL_BUSTER BUSTER_FREE ;; # testing - _) echo DEBIAN STRETCH64 VOL_TESTING TESTING_NONFREE ;; - # belenos - _) echo UBUNTU BELENOS64 VOL_BELENOS BELENOS ;; + _) echo DEBIAN STRETCH64 VOL_TESTING TESTING_FREE ;; # xenial _) echo UBUNTU XENIAL64 VOL_XENIAL XENIAL_FREE ;; esac diff --git a/fai/config/files/etc/apt/sources.list.d/stretch.list/BUSTER_FREE b/fai/config/files/etc/apt/sources.list.d/stretch.list/BUSTER_FREE new file mode 100644 index 0000000..be9c7e3 --- /dev/null +++ b/fai/config/files/etc/apt/sources.list.d/stretch.list/BUSTER_FREE @@ -0,0 +1,11 @@ +deb http://http.us.debian.org/debian buster main +deb-src http://http.us.debian.org/debian buster main + +deb http://security.debian.org/ buster/updates main +deb-src http://security.debian.org/ buster/updates main + +deb http://http.us.debian.org/debian buster-updates main +deb-src http://http.us.debian.org/debian buster-updates main + +deb http://http.debian.net/debian buster-backports main +deb-src http://http.debian.net/debian buster-backports main diff --git a/fai/config/files/etc/apt/sources.list.d/stretch.list/BUSTER_LINODE b/fai/config/files/etc/apt/sources.list.d/stretch.list/BUSTER_LINODE new file mode 100644 index 0000000..1d91060 --- /dev/null +++ b/fai/config/files/etc/apt/sources.list.d/stretch.list/BUSTER_LINODE @@ -0,0 +1,11 @@ +deb http://mirrors.linode.com/debian/ buster main +deb-src http://mirrors.linode.com/debian/ buster main + +deb http://security.debian.org/ buster/updates main +deb-src http://security.debian.org/ buster/updates main + +deb http://mirrors.linode.com/debian/ buster-updates main +deb-src http://mirrors.linode.com/debian/ buster-updates main + +deb http://mirrors.linode.com/debian/ buster-backports main +deb-src http://mirrors.linode.com/debian/ buster-backports main diff --git a/fai/config/files/etc/apt/sources.list.d/stretch.list/BUSTER_NONFREE b/fai/config/files/etc/apt/sources.list.d/stretch.list/BUSTER_NONFREE new file mode 100644 index 0000000..f85a6fe --- /dev/null +++ b/fai/config/files/etc/apt/sources.list.d/stretch.list/BUSTER_NONFREE @@ -0,0 +1,11 @@ +deb http://http.us.debian.org/debian buster main contrib non-free +deb-src http://http.us.debian.org/debian buster main contrib non-free + +deb http://security.debian.org/ buster/updates main contrib non-free +deb-src http://security.debian.org/ buster/updates main contrib non-free + +deb http://http.us.debian.org/debian buster-updates main contrib non-free +deb-src http://http.us.debian.org/debian buster-updates main contrib non-free + +deb http://http.debian.net/debian buster-backports main contrib non-free +deb-src http://http.debian.net/debian buster-backports main contrib non-free diff --git a/faiserver-setup b/faiserver-setup index cf0da93..17dfba3 100755 --- a/faiserver-setup +++ b/faiserver-setup @@ -21,18 +21,18 @@ x="$(readlink -f "$BASH_SOURCE")"; source "${x%/*}/bash-trace" usage() { cat </etc/apt/sources.list.d/fai.list <<'EOF' + case $base in + stretch) + cat >/etc/apt/sources.list.d/fai.list <<'EOF' deb https://fai-project.org/download stretch koeln EOF + ;; + buster) + cat >/etc/apt/sources.list.d/fai.list <<'EOF' +deb https://fai-project.org/download buster koeln +EOF + ;; + esac else rm -f /etc/apt/sources.list.d/fai.list fi @@ -136,7 +144,7 @@ EOF case $base in - jessie|stretch) + jessie|stretch|buster) cat >>/etc/fai/apt/sources.list <