Putting the following into /usr/share/initramfs-tools/scripts/init-premount/aaamdadm, and then rebuilding the initramfs seems to help:
#!/bin/sh
mdadm -A --scan
Putting the following into /usr/share/ initramfs- tools/scripts/ init-premount/ aaamdadm, and then rebuilding the initramfs seems to help:
#!/bin/sh
mdadm -A --scan