(module2 as a Xen hypervisor is being loaded, but that's irrelevant to the actual functionality of Grub)
The only things that need to be ensured are having
insmod mdraid1x
insmod lvm
in grub.cfg. Debian 11 just natively supports this and doesn't require any special configuration here, that's the output from a stock update-grub.
So I would recommend just removing that snippet entirely, since if Debian can do it, I guess everything can; or, if this is supposd to be a foot penetration safety measure, at least allow disabling it with a command line flag.
I've had a couple of installs where I needed to patch installimage by removing https://github.com/hetzneronline/installimage/blob/cc14774999dc19d7724e4c71b1d597da69955db0/functions.sh#L1118-L1139
A totally working Debian 11 setup has this truncated
lsblk
output:And following snippet from
grub.cfg
:(
module2
as a Xen hypervisor is being loaded, but that's irrelevant to the actual functionality of Grub)The only things that need to be ensured are having
in
grub.cfg
. Debian 11 just natively supports this and doesn't require any special configuration here, that's the output from a stockupdate-grub
.So I would recommend just removing that snippet entirely, since if Debian can do it, I guess everything can; or, if this is supposd to be a foot penetration safety measure, at least allow disabling it with a command line flag.