#1028662 lvm2-udeb: /sbin/fsadm missing from Debian installer; breaks -r with lvreduce/lvextend

Package:
lvm2
Source:
lvm2
Description:
Linux Logical Volume Manager
Submitter:
Date:
2023-01-14 12:51:06 UTC
Severity:
normal
Tags:
#1028662#5
Date:
2023-01-14 12:27:10 UTC
From:
To:
Dear Maintainer,

Whilst attempting to resize some LVM on LUKS partitions using
lvreduce/lvextend from the current Debian 11 installer in rescue mode,
I received the following error when using the `-r` option to resize the
underlying filesystem:

# lvreduce -L -10G -r -v /dev/foo/home
     Finding volume group foo
     Executing: fsadm check /dev/foo/home (null)
   fsadm: execlp failed: No such file or directory

The same error was received when running lvextend to grow LVs into the
freed space.

lvresize, lvreduce, and lvextend all support the `-r` option to resize
the underlying filesystem when resizing the logical volume. With fsadm
missing from the Debian installer, this will fail.

Merge request here: https://salsa.debian.org/lvm-team/lvm2/-/merge_requests/5

Thanks!