From: Chris Hofstaedtler Date: Mon, 13 Nov 2023 22:59:25 +0000 (+0100) Subject: swraid: remove code for lenny X-Git-Tag: v0.105~11^2~2 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=0cf7d8e0affff584ea23b190ff32d2cd70a77b2c swraid: remove code for lenny --- diff --git a/grml-debootstrap b/grml-debootstrap index 513c27b..cf35e97 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -926,16 +926,10 @@ while IFS= read -r i; do NUM_PARTITIONS=$(( NUM_PARTITIONS + 1 )) done < "$TMPFILE" -# force metadata version 0.90 for lenny so old grub can boot from this array. -METADATA_VERSION="" -if [ "$RELEASE" = "lenny" ]; then - METADATA_VERSION="-e0" -fi - ERRORFILE=$(mktemp) # shellcheck disable=SC2086 yes | mdadm --create "${TARGET}" --level="${RAIDLEVEL}" \ - --raid-devices="${NUM_PARTITIONS}" ${METADATA_VERSION} ${SELECTED_PARTITIONS} >/dev/null 2>$ERRORFILE + --raid-devices="${NUM_PARTITIONS}" ${SELECTED_PARTITIONS} >/dev/null 2>$ERRORFILE RC=$? if [ "$RC" = 0 ] ; then dialog --title "$PN" --msgbox \ diff --git a/grml-debootstrap.8.txt b/grml-debootstrap.8.txt index 890287d..b96ac64 100644 --- a/grml-debootstrap.8.txt +++ b/grml-debootstrap.8.txt @@ -463,26 +463,6 @@ throwing segfaults during debootstrap. This can be identified by the following m dpkg[...]: segfault at [...] To work around this issue boot your system with the kernel boot option 'vsyscall=emulate'. - -You also need to specify a filesystem that's supported by lenny, e.g. -'--filesystem ext3' since grml-debootstrap's current default (ext4) isn't -supported by lenny. - -Also when debootstrapping lenny on a live system with a kernel version -like "3.16-1-grml-amd64" lenny's libc will fail to install with: - - [...] - /var/lib/dpkg/tmp.ci/preinst: line 265: [: 3.16-1-grml-amd64: integery expression expected - /var/lib/dpkg/tmp.ci/preinst: line 231: 3.16-1-grml-amd64: syntax error: invalid arithemtic operator (error token is ".16-1-grml-amd64") - dpkg: error processing /var/cache/apt/archives/libc6_2.7-18lenny7_amd64.deb (--install): - [....] - -To workaround this either debootstrap from a system with an according -kernel version or use the "fake uname" workaround (just google for it). - -When installing lenny to a new mdraid, grml-debootstrap will use md metadata -format version 0.90. This limits the device to a maximum size of 2TB, but has -the advantage of grub-legacy actually being able to boot from it. ================================================================================ [NOTE]