Disable ext4 metadata_csum_seed for Debian releases older than bookworm
authorMichael Prokop <mika@grml.org>
Mon, 20 Feb 2023 08:06:43 +0000 (09:06 +0100)
committerMichael Prokop <mika@grml.org>
Mon, 20 Feb 2023 08:18:16 +0000 (09:18 +0100)
commitbbb2ea07e365faf1eded92926eed68905d28e23f
treead990b3d681ede02863423c94ce2445a365aac5a
parent0d49f1b86d1431e34ec053483de1516bdabe1e3f
Disable ext4 metadata_csum_seed for Debian releases older than bookworm

As of e2fsprogs v1.43 and Linux kernel v4.4 the ext4 file system supports
the new metadata_csum_seed feature (which allows the file system UUID to
be modified without needing to update all of the file system metadata).
Also see https://bugs.debian.org/1031325

Starting with e2fsprogs v1.47 this new metadata_csum_seed feature gets
enabled by default. When installing an older Debian release this might
cause problems because it's not fully supported yet, see e.g. the GRUB
failure documented as #866603.

To keep the behavior identical to Debian, we do not enable the
metadata_csum_seed feature for Debian releases before bookworm.  This is
relevant for us, as grml-debootstrap might be running from a more recent
Debian release (like a Debian testing/unstable based Grml live system).

We check for the e2fsprogs version as versions before 1.43 didn't support
the metadata_csum_seed option yet.

Closes: #1031416
Closes: https://github.com/grml/grml-debootstrap/issues/204
grml-debootstrap