Drop support for lenny, squeeze, wheezy, jessie, stretch + buster Debian releases...
authorMichael Prokop <mika@grml.org>
Thu, 2 Feb 2023 16:38:32 +0000 (17:38 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 3 Feb 2023 16:41:17 +0000 (17:41 +0100)
Debian lenny (v5), squeeze (v6), wheezy (v7), jessie (v8),
stretch (v9) and buster (v10) are all EOL and we don't support
any of them any longer.

docs/grml-live.txt
etc/grml/fai/config/files/etc/apt/preferences.d/jessie-backports/DEBIAN_JESSIE [deleted file]
etc/grml/fai/config/files/etc/apt/sources.list.d/debian.list/DEBIAN_BUSTER [deleted file]
etc/grml/fai/config/files/etc/apt/sources.list.d/debian.list/DEBIAN_JESSIE [deleted file]
etc/grml/fai/config/files/etc/apt/sources.list.d/debian.list/DEBIAN_LENNY [deleted file]
etc/grml/fai/config/files/etc/apt/sources.list.d/debian.list/DEBIAN_SQUEEZE [deleted file]
etc/grml/fai/config/files/etc/apt/sources.list.d/debian.list/DEBIAN_STRETCH [deleted file]
etc/grml/fai/config/package_config/DEBIAN_SQUEEZE [deleted file]
etc/grml/fai/config/scripts/GRMLBASE/15-initsetup
etc/grml/grml-live.conf
etc/zsh/completion.d/_grml-live

index e43ba7a..6f47da2 100644 (file)
@@ -202,7 +202,7 @@ Specify name of the release.
 
 Specify the Debian suite you want to use for your live-system. If unset defaults
 to "testing". Supported values are: stable, testing, unstable (or their
 
 Specify the Debian suite you want to use for your live-system. If unset defaults
 to "testing". Supported values are: stable, testing, unstable (or their
-corresponding release names like "stretch"). Please be aware that recent Debian
+corresponding release names like "bookworm"). Please be aware that recent Debian
 suites might require a recent base.tgz
 (${GRML_FAI_CONFIG}/config/basefiles/$CLASSNAME.tar.gz) or a recent version of
 debootstrap.
 suites might require a recent base.tgz
 (${GRML_FAI_CONFIG}/config/basefiles/$CLASSNAME.tar.gz) or a recent version of
 debootstrap.
@@ -522,9 +522,9 @@ The easiest way to get a running grml-live setup is to just use Grml.
 Of course using grml-live on a plain, original Debian installation is supported
 as well. So there we go.
 
 Of course using grml-live on a plain, original Debian installation is supported
 as well. So there we go.
 
-What we have: plain, original Debian stretch (9.x).
+What we have: plain, original Debian bookworm (v12).
 
 
-What we want: build a Grml ISO based on Debian/stretch for the amd64 architecture
+What we want: build a Grml ISO based on Debian/bookworm for the amd64 architecture
 using grml-live.
 
 Instructions
 using grml-live.
 
 Instructions
@@ -566,7 +566,7 @@ Instructions
   # CHROOT_INSTALL="/etc/grml/fai/chroot_install"
   ## adjust if necessary (defaults to ./grml/):
   ## OUTPUT="/srv/grml-live"
   # CHROOT_INSTALL="/etc/grml/fai/chroot_install"
   ## adjust if necessary (defaults to ./grml/):
   ## OUTPUT="/srv/grml-live"
-  FAI_DEBOOTSTRAP="stretch http://ftp.debian.org/debian/"
+  FAI_DEBOOTSTRAP="bookworm http://deb.debian.org/debian/"
   # ARCH="amd64"
   CLASSES="GRMLBASE,GRML_FULL,AMD64"
   EOF
   # ARCH="amd64"
   CLASSES="GRMLBASE,GRML_FULL,AMD64"
   EOF
@@ -689,7 +689,7 @@ FAI_DEBOOTSTRAP:
   [...]
   APT_PROXY="http://localhost:3142/"
   [...]
   [...]
   APT_PROXY="http://localhost:3142/"
   [...]
-  FAI_DEBOOTSTRAP="stretch http://localhost:3142/ftp.debian.org/debian stretch main contrib non-free"
+  FAI_DEBOOTSTRAP="bookworm http://localhost:3142/ftp.debian.org/debian bookworm main contrib non-free"
 
 Make sure apt-cacher-ng is running ('/etc/init.d/apt-cacher-ng restart').
 That's it.  All downloaded files will be cached in /var/cache/apt-cacher-ng then.
 
 Make sure apt-cacher-ng is running ('/etc/init.d/apt-cacher-ng restart').
 That's it.  All downloaded files will be cached in /var/cache/apt-cacher-ng then.
@@ -719,7 +719,7 @@ How do I create a base tar.gz (I386.tar.gz or AMD64.tar.gz)
 First of all create the chroot using debootstrap (requires root):
 
   BASECHROOT='/tmp/basefile'  # path where the chroot gets generated
 First of all create the chroot using debootstrap (requires root):
 
   BASECHROOT='/tmp/basefile'  # path where the chroot gets generated
-  SUITE='stretch'              # using the current stable release should always work
+  SUITE='bookworm'              # using the current stable release should always work
   debootstrap --exclude=info,tasksel,tasksel-data "$SUITE" "$BASECHROOT" http://ftp.debian.org/debian
   tar -C "$BASECHROOT" --exclude='var/cache/apt/archives/*.deb' -zcf "${SUITE}".tar.gz ./
 
   debootstrap --exclude=info,tasksel,tasksel-data "$SUITE" "$BASECHROOT" http://ftp.debian.org/debian
   tar -C "$BASECHROOT" --exclude='var/cache/apt/archives/*.deb' -zcf "${SUITE}".tar.gz ./
 
diff --git a/etc/grml/fai/config/files/etc/apt/preferences.d/jessie-backports/DEBIAN_JESSIE b/etc/grml/fai/config/files/etc/apt/preferences.d/jessie-backports/DEBIAN_JESSIE
deleted file mode 100644 (file)
index a877c25..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-Explanation: this file was installed by grml-live to allow installation of systemd/udev (required for systemd-container) from backports
-Package: systemd libsystemd0 libpam-systemd libapparmor1 ifupdown systemd-sysv udev libudev1 usb-modeswitch
-Pin: release a=jessie-backports
-Pin-Priority: 997
-
-Explanation: this file was installed by grml-live to allow installation of linux-base (required for kernel packages) from backports
-Package: linux-base firmware-misc-nonfree firmware-linux-nonfree firmware-linux
-Pin: release a=jessie-backports
-Pin-Priority: 997
diff --git a/etc/grml/fai/config/files/etc/apt/sources.list.d/debian.list/DEBIAN_BUSTER b/etc/grml/fai/config/files/etc/apt/sources.list.d/debian.list/DEBIAN_BUSTER
deleted file mode 100644 (file)
index 3e16fd7..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-# official debian repository:
-  deb     http://ftp.debian.org/debian/ buster main contrib non-free
-  deb-src http://ftp.debian.org/debian/ buster main contrib non-free
-
-# security updates:
-  deb     http://security.debian.org/ buster/updates main contrib non-free
-  deb-src http://security.debian.org/ buster/updates main contrib non-free
diff --git a/etc/grml/fai/config/files/etc/apt/sources.list.d/debian.list/DEBIAN_JESSIE b/etc/grml/fai/config/files/etc/apt/sources.list.d/debian.list/DEBIAN_JESSIE
deleted file mode 100644 (file)
index 6e8cf12..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-# official debian repository:
-  deb     http://ftp.debian.org/debian/ jessie main contrib non-free
-  deb-src http://ftp.debian.org/debian/ jessie main contrib non-free
-
-# security updates:
-  deb     http://security.debian.org/ jessie/updates main contrib
-  deb-src http://security.debian.org/ jessie/updates main contrib
-
-# backports:
-  deb     http://ftp.debian.org/debian/ jessie-backports main contrib non-free
-  deb-src http://ftp.debian.org/debian/ jessie-backports main contrib non-free
diff --git a/etc/grml/fai/config/files/etc/apt/sources.list.d/debian.list/DEBIAN_LENNY b/etc/grml/fai/config/files/etc/apt/sources.list.d/debian.list/DEBIAN_LENNY
deleted file mode 100644 (file)
index 9f9aaab..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-# official debian repository:
-  deb     http://ftp.debian.org/debian/ lenny main contrib non-free
-  deb-src http://ftp.debian.org/debian/ lenny main contrib non-free
-
-# security updates:
-  deb     http://security.debian.org/ lenny/updates main contrib
-  deb-src http://security.debian.org/ lenny/updates main contrib
diff --git a/etc/grml/fai/config/files/etc/apt/sources.list.d/debian.list/DEBIAN_SQUEEZE b/etc/grml/fai/config/files/etc/apt/sources.list.d/debian.list/DEBIAN_SQUEEZE
deleted file mode 100644 (file)
index 548e7ed..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-# official debian repository:
-  deb     http://ftp.debian.org/debian/ squeeze main contrib non-free
-  deb-src http://ftp.debian.org/debian/ squeeze main contrib non-free
-
-# security updates:
-  deb     http://security.debian.org/ squeeze/updates main contrib
-  deb-src http://security.debian.org/ squeeze/updates main contrib
-
-# backports:
-  deb     http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
-  deb-src http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
diff --git a/etc/grml/fai/config/files/etc/apt/sources.list.d/debian.list/DEBIAN_STRETCH b/etc/grml/fai/config/files/etc/apt/sources.list.d/debian.list/DEBIAN_STRETCH
deleted file mode 100644 (file)
index f27cc7f..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-# official debian repository:
-  deb     http://ftp.debian.org/debian/ stretch main contrib non-free
-  deb-src http://ftp.debian.org/debian/ stretch main contrib non-free
-
-# security updates:
-  deb     http://security.debian.org/ stretch/updates main contrib
-  deb-src http://security.debian.org/ stretch/updates main contrib
-
-# backports:
-  deb     http://ftp.debian.org/debian/ stretch-backports main contrib non-free
-  deb-src http://ftp.debian.org/debian/ stretch-backports main contrib non-free
diff --git a/etc/grml/fai/config/package_config/DEBIAN_SQUEEZE b/etc/grml/fai/config/package_config/DEBIAN_SQUEEZE
deleted file mode 100644 (file)
index bf18dac..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-PACKAGES install
-
-# needed for linux-image-amd64-grml
-linux-base/squeeze-backports
-initramfs-tools/squeeze-backports
index 459e51a..efd9e64 100755 (executable)
@@ -16,20 +16,11 @@ systemd_setup() {
   echo "Enabling user '$USERNAME' for autologin"
   sed -i "s/\$USERNAME/$USERNAME/" "$target"/etc/systemd/system/getty@tty*.service.d/override.conf
 
   echo "Enabling user '$USERNAME' for autologin"
   sed -i "s/\$USERNAME/$USERNAME/" "$target"/etc/systemd/system/getty@tty*.service.d/override.conf
 
-  case "$(cat "${target}"/etc/debian_version)" in
-    8.*)
-      echo "Debian jessie detected. Enabling workaround for unknown systemctl preset-all/set-default exit failure."
-      $ROOTCMD systemctl preset-all || true
-      $ROOTCMD systemctl set-default grml-boot.target || true
-      ;;
-    *)
-      # workaround for #992847 to workaround /lib/systemd -> /usr/lib/systemd transition
-      $ROOTCMD rm -f /etc/systemd/system/syslog.service
+  # workaround for #992847 to workaround /lib/systemd -> /usr/lib/systemd transition
+  $ROOTCMD rm -f /etc/systemd/system/syslog.service
 
 
-      $ROOTCMD systemctl preset-all
-      $ROOTCMD systemctl set-default grml-boot.target
-      ;;
-  esac
+  $ROOTCMD systemctl preset-all
+  $ROOTCMD systemctl set-default grml-boot.target
 }
 
 file_rc_setup() {
 }
 
 file_rc_setup() {
index 2c52205..4fb6935 100644 (file)
@@ -49,7 +49,7 @@
 
 # Which Debian suite/release do you want to use?
 # Supported values are: stable, testing, unstable (or their corresponding release
 
 # Which Debian suite/release do you want to use?
 # Supported values are: stable, testing, unstable (or their corresponding release
-# names like "stretch").
+# names like "bookworm").
 # Unless it is set it defaults to "testing".
 # SUITE="unstable"
 
 # Unless it is set it defaults to "testing".
 # SUITE="unstable"
 
@@ -66,7 +66,7 @@
 
 # Which Debian suite and which mirror do you want to use for debootstrapping?
 # Usage: "<suite> <mirror>"
 
 # Which Debian suite and which mirror do you want to use for debootstrapping?
 # Usage: "<suite> <mirror>"
-# FAI_DEBOOTSTRAP="stretch http://ftp.debian.org/debian"
+# FAI_DEBOOTSTRAP="bookworm http://ftp.debian.org/debian"
 
 # Do you want to use a local mirror (like NFS)?
 # If so specify the directory where debian/ is available:
 
 # Do you want to use a local mirror (like NFS)?
 # If so specify the directory where debian/ is available:
index cb43f59..554f3e1 100644 (file)
@@ -47,7 +47,7 @@ _grmllive_suites() { #{{{
   local -a suites
 
   suites=(
   local -a suites
 
   suites=(
-    stable testing unstable jessie stretch buster sid
+    stable testing unstable bullseye bookworm sid
   )
   _wanted list expl 'Debian suite' compadd ${expl} -- ${suites}
 }
   )
   _wanted list expl 'Debian suite' compadd ${expl} -- ${suites}
 }