There is a similar solution mentioned here: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1196693, which proposes to link /usr/share/initramfs-tools/scripts/local-premount/mdadm -> /etc/initramfs-tools/scripts/local-top/mdadm. Looks like it's the simplest, but I'm not sure it doesn't break something else.
Forgot to mention in the previous post: the EFI partition disk change should be made in /etc/fstab.
There is a similar solution mentioned here: https:/ /bugs.launchpad .net/ubuntu/ +source/ initramfs- tools/+ bug/1196693, which proposes to link /usr/share/ initramfs- tools/scripts/ local-premount/ mdadm -> /etc/initramfs- tools/scripts/ local-top/ mdadm. Looks like it's the simplest, but I'm not sure it doesn't break something else.
Forgot to mention in the previous post: the EFI partition disk change should be made in /etc/fstab.