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.
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
# 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
[...]
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.
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 ./
+++ /dev/null
-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
+++ /dev/null
-# 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
+++ /dev/null
-# 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
+++ /dev/null
-# 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
+++ /dev/null
-# 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
+++ /dev/null
-# 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
+++ /dev/null
-PACKAGES install
-
-# needed for linux-image-amd64-grml
-linux-base/squeeze-backports
-initramfs-tools/squeeze-backports
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() {
# 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"
# 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:
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}
}