Skip to content

Commit

Permalink
Drop support for lenny, squeeze, wheezy, jessie, stretch + buster Deb…
Browse files Browse the repository at this point in the history
…ian releases and default to bookworm

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.
  • Loading branch information
mika committed Feb 3, 2023
1 parent 1f5167a commit 5a77db4
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 83 deletions.
12 changes: 6 additions & 6 deletions docs/grml-live.txt
Expand Up @@ -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
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.
Expand Down Expand Up @@ -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.

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
Expand Down Expand Up @@ -566,7 +566,7 @@ Instructions
# 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
Expand Down Expand Up @@ -689,7 +689,7 @@ FAI_DEBOOTSTRAP:
[...]
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.
Expand Down Expand Up @@ -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
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 ./

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions etc/grml/fai/config/package_config/DEBIAN_SQUEEZE

This file was deleted.

17 changes: 4 additions & 13 deletions etc/grml/fai/config/scripts/GRMLBASE/15-initsetup
Expand Up @@ -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

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() {
Expand Down
4 changes: 2 additions & 2 deletions etc/grml/grml-live.conf
Expand Up @@ -49,7 +49,7 @@

# 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"

Expand All @@ -66,7 +66,7 @@

# 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:
Expand Down
2 changes: 1 addition & 1 deletion etc/zsh/completion.d/_grml-live
Expand Up @@ -47,7 +47,7 @@ _grmllive_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}
}
Expand Down

0 comments on commit 5a77db4

Please sign in to comment.