Hi Grub dev team,
I believe the bug is in https://salsa.debian.org/grub-team/grub/-/blob/bookworm/debian/patches/efi-variable-storage-minimise-writes.patch?ref_type=heads#L632 For MD RAID, grub_util_biosdisk_get_osdev (efidir_grub_dev->disk) will return 0, and it will cause the error thereafter. Regards, Henry