strace shows:
[pid 30986] execve("/bin/efibootmgr", ["efibootmgr", "-q", "-c", "-d"], [/* 35 vars */]) = 0
this points to a problem in grub-core/osdep/unix/platform.c:grub_install_register_efi(), where efidir_disk is being set to NULL.
This suggests that grub is unable to resolve your /dev/md1 to a physical disk.
strace shows:
[pid 30986] execve( "/bin/efibootmg r", ["efibootmgr", "-q", "-c", "-d"], [/* 35 vars */]) = 0
this points to a problem in grub-core/ osdep/unix/ platform. c:grub_ install_ register_ efi(), where efidir_disk is being set to NULL.
This suggests that grub is unable to resolve your /dev/md1 to a physical disk.