From 4a2a0b29d90cc55c1e1083350a3279cc669720dc Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 6 Feb 2023 16:43:51 +0100 Subject: [PATCH] Use bookworm as new default release + update release list There's no point in suggesting EOL releases in the dialog(1) dialog any longer, so let's drop lenny, squeeze, wheezy, jessie + stretch there. While at it switch from X.Y to X version schema as we always install the latest Debian (point) release and not the displayed X.0 one. Use bookworm as the new default release so we get grml-debootstrap accordingly into the bookworm freeze (see https://release.debian.org/testing/freeze_policy.html for details). Update the docs regarding support releases. --- grml-debootstrap | 14 +++++--------- grml-debootstrap.8.txt | 33 ++++++++++++++++----------------- releasetable.txt | 9 +++++---- 3 files changed, 26 insertions(+), 30 deletions(-) diff --git a/grml-debootstrap b/grml-debootstrap index 71a0942..a1e9552 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -74,7 +74,7 @@ MNTPOINT="/mnt/debootstrap.$$" [ -n "$POST_SCRIPTS" ] || POST_SCRIPTS='yes' [ -n "$PRE_SCRIPTS" ] || PRE_SCRIPTS='yes' [ -n "$RECONFIGURE" ] || RECONFIGURE='console-data' -[ -n "$RELEASE" ] || RELEASE='bullseye' +[ -n "$RELEASE" ] || RELEASE='bookworm' [ -n "$RM_APTCACHE" ] || RM_APTCACHE='yes' [ -n "$SCRIPTS" ] || SCRIPTS='no' # deprecated, replaced by POST_SCRIPTS [ -n "$SECURE" ] || SECURE='yes' @@ -801,13 +801,9 @@ prompt_for_release() RELEASE="$(dialog --stdout --title "${PN}" --default-item $DEFAULT_RELEASE --menu \ "Please enter the Debian release you would like to use for installation:" \ 0 50 8 \ - lenny Debian/5.0 \ - squeeze Debian/6.0 \ - wheezy Debian/7.0 \ - jessie Debian/8.0 \ - stretch Debian/9.0 \ - buster Debian/10.0 \ - bullseye Debian/11.0 \ + buster Debian/10 \ + bullseye Debian/11 \ + bookworm Debian/12 \ sid Debian/unstable)" [ $? -eq 0 ] || bailout } @@ -1191,7 +1187,7 @@ fi # Support for generic release codenames is unavailable. {{{ if [ "$RELEASE" = "stable" ] || [ "$RELEASE" = "testing" ] ; then eerror "Generic release codenames (stable, testing) are unsupported. \ -Please use specific codenames such as buster or bullseye." ; eend 1 +Please use specific codenames such as bullseye or bookworm." ; eend 1 bailout 1 fi # }}} diff --git a/grml-debootstrap.8.txt b/grml-debootstrap.8.txt index 9bd28ec..d6b8139 100644 --- a/grml-debootstrap.8.txt +++ b/grml-debootstrap.8.txt @@ -219,8 +219,8 @@ Options and environment variables *-r*, *--release* _releasename_:: Specify release of new Debian system. Supported releases names: lenny, - squeeze, wheezy, jessie, stretch, buster, bullseye and sid. Corresponding with configuration - variable RELEASE. Default release: bullseye + squeeze, wheezy, jessie, stretch, buster, bullseye, bookworm and sid. + Corresponding with configuration variable RELEASE. Default release: bookworm *--remove-configs*:: @@ -295,7 +295,7 @@ Usage examples grml-debootstrap --target /dev/sda1 --grub /dev/sda -Install default Debian release (bullseye) on /dev/sda1 and install bootmanager GRUB in MBR (master boot record) of /dev/sda. +Install default Debian release (bookworm) on /dev/sda1 and install bootmanager GRUB in MBR (master boot record) of /dev/sda. grml-debootstrap --release stretch --target /dev/sda1 --grub /dev/sda --hostname debian01 --password changeme @@ -308,32 +308,32 @@ Install Debian unstable/sid on /dev/sda6 and install bootmanager GRUB in MBR (ma DEBOOTSTRAP=mmdebstrap grml-debootstrap --target /dev/sda1 --grub /dev/sda -Install default Debian release (bullseye) on /dev/sda1 and install bootmanager GRUB in MBR (master boot record) of /dev/sda. +Install default Debian release (bookworm) on /dev/sda1 and install bootmanager GRUB in MBR (master boot record) of /dev/sda. Use mmdebstrap instead of default debootstrap tool for bootstrapping. grml-debootstrap --target /dev/mapper/vg0-rootfs --grub /dev/sda -Install default Debian release (bullseye) on LVM device /dev/mapper/vg0-rootfs and install bootmanager GRUB in MBR (master boot record) of /dev/sda. +Install default Debian release (bookworm) on LVM device /dev/mapper/vg0-rootfs and install bootmanager GRUB in MBR (master boot record) of /dev/sda. grml-debootstrap --efi /dev/sda1 --target /dev/sda2 --grub /dev/sda -Install default Debian release (bullseye) on /dev/sda2 and install bootmanager GRUB in MBR (master boot record) of /dev/sda. +Install default Debian release (bookworm) on /dev/sda2 and install bootmanager GRUB in MBR (master boot record) of /dev/sda. Use /dev/sda1 as EFI partition (requires EFI support in booted system). mount /dev/sda1 /data/chroot grml-debootstrap --target /data/chroot -Install default Debian release (bullseye) in directory /data/chroot (without any bootloader). +Install default Debian release (bookworm) in directory /data/chroot (without any bootloader). grml-debootstrap --target /dev/sda3 --grub /dev/sda --mirror ftp://ftp.tugraz.at/mirror/debian -Install default Debian release (bullseye) on /dev/sda3 and install bootmanager GRUB in MBR (master boot record) of /dev/sda. +Install default Debian release (bookworm) on /dev/sda3 and install bootmanager GRUB in MBR (master boot record) of /dev/sda. Use specified mirror instead of the default (http://deb.debian.org/debian) one. mount /dev/sda1 /mnt/sda1 grml-debootstrap --vmfile --vmsize 3G --target /mnt/sda1/qemu.img -Install default debian release (bullseye) in a Virtual Machine file with 3GB disk size (including GRUB as bootmanager in MBR of the virtual disk file): +Install default debian release (bookworm) in a Virtual Machine file with 3GB disk size (including GRUB as bootmanager in MBR of the virtual disk file): mount -o loop ./debian-CD-1.iso /media/cdrom grml-debootstrap --target /dev/sda1 --grub /dev/sda --iso /media/cdrom @@ -405,8 +405,9 @@ Where do you want to install grub to? Usage example: grub=/dev/sda release=... -Specify release of new Debian system. Defaults to Debian bullseye. Supported -releases: lenny, squeeze, wheezy, jessie, stretch, buster, bullseye and sid. Usage example: release=stretch +Specify release of new Debian system. Defaults to Debian bookworm. +Supported releases: lenny, squeeze, wheezy, jessie, stretch, buster, bullseye, bookworm and sid. +Usage example: release=bullseye mirror=... @@ -440,18 +441,16 @@ Supported Releases include::releasetable.txt[] [NOTE] -.lenny/squeeze/wheezy release +.lenny/squeeze/wheezy/jessie/stretch/buster release ================================================================================ -[1] Please notice that releases like lenny, squeeze and wheezy are unsupported releases within Debian nowadays. +[1] Please notice that releases like lenny, squeeze, wheezy, jessie, stretch and buster are unsupported releases within Debian nowadays. grml-debootstrap can handle the releases but you really should not use them anymore unless you really know what you are doing. Choose the current Debian stable version instead. See https://wiki.debian.org/DebianReleases for the list of supported releases. -Notice that you need to specify a mirror providing the lenny and squeeze releases, the -default (http://deb.debian.org/debian) doesn't provide it any longer nowadays. -Set the mirror to e.g. http://archive.debian.org/debian/ if you don't have -your own lenny/squeeze mirror. +Notice that you need to specify a specific mirror providing old releases, the default (http://deb.debian.org/debian) doesn't provide them any longer. +Set the mirror to e.g. http://archive.debian.org/debian/ if you don't have your own Debian mirror. Older releases might also fail to install when running on top of recent kernel versions, throwing segfaults during debootstrap. This can be identified by the following messages inside kernel log (check with 'dmesg'): diff --git a/releasetable.txt b/releasetable.txt index d3f0316..2b65e6f 100644 --- a/releasetable.txt +++ b/releasetable.txt @@ -5,9 +5,10 @@ |lenny |works[1] |squeeze |works[1] |wheezy |works[1] -|jessie |works -|stretch |works -|buster |works -|bullseye |works[2] +|jessie |works[1] +|stretch |works[1] +|buster |works[1] +|bullseye |works +|bookworm |works |sid |works[2] |====================== -- 2.1.4