If your system does not boot up und you’re dropped to an initramfs shell after “waiting for root filesystem” fails – check your mdadm config
Make sure it contains the correct definitions which are available with
mdadm --detail --scan
Adjust your config and run
update-initramfs -u -k all
to make the system bootable again.