On 04/07/2023 at 03:24, Cyril Brulebois wrote:
Samuel Thibault <sthiba...@debian.org> (2023-07-04):
As pointed out in #1040266, when using guided partitioning inside a
raid, partman-auto creates an EFI partition there, and then grub-install
fails because it can't register it. This error could also happen if a
user creates by hand an EFI partition inside the raid by mistake. Just
like partman-efi warns when no EFI partition is defined, it should also
warn when an EFI partition is defined inside a raid or lvm (thus
actually unreachable from EFI).

FWIW a long ime ago I submitted a MR to allow EFI partitions only on disk labels which support the ESP flag (i.e. not the "loop" disk label used on LVM logical volumes and unpartitoned RAID arrays). It won't prevent an EFI partition in a partitioned RAID array, but AFAIK manual partitioning does not allow to create a partition table on a RAID array.

It's fine to have an EFI partition inside a RAID array. One “just” needs
to pass --no-nvram and to register it manually. That's not something
that's achievable via d-i at the moment though (unless recent changes in
grub-installer, near the end of the bookworm release cycle) made it
possible indirectly.

Any pointer to these recent changes ?

Reply via email to