Ensure to have filesystem tools installed
authorMichael Prokop <mika@grml.org>
Fri, 25 Nov 2022 10:48:06 +0000 (11:48 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 25 Nov 2022 10:50:32 +0000 (11:50 +0100)
commit4c49de9d47fef1e743d87bd7bd08fd4ac7d36f9c
tree2233173dca8b0ac7acc97d50cdd91396dfec3e0a
parent8b44fbbb34301d28e9f4ff80516e90122748660c
Ensure to have filesystem tools installed

When installing to an XFS root partition, update-initramfs complains:

| update-initramfs: Generating /boot/initrd.img-5.10.0-19-amd64
| W: /sbin/fsck.xfs doesn't exist, can't install to initramfs

Let's make sure to have the according filesystem package available.

FTR, no need for handling ext* + e2fsprogs, as this is available anyways
due to `Priority: required`.

Also, the "--filesystem jfs" isn't supported by default (as mkfs.jfs
expects user input unless invoked with -q, something we might wanna
automate in the future?), but someone can prepare it manually and
install it to the mounted file system, so let's also handle this.

Thanks: Chris Hofstaedtler for the bug report
Closes: https://github.com/grml/grml-debootstrap/issues/200
chroot-script