Skip to content

Commit

Permalink
swraid: remove code for lenny
Browse files Browse the repository at this point in the history
  • Loading branch information
zeha committed Nov 17, 2023
1 parent ce80d13 commit 0cf7d8e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
8 changes: 1 addition & 7 deletions grml-debootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
20 changes: 0 additions & 20 deletions grml-debootstrap.8.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 0cf7d8e

Please sign in to comment.