An explanation: md detection and assembly is done by udev. Each time a linux_raid partition is detected, udev calls mdadm to do an incremental assembly.
But nothing is done to be sure incremental assembly is over before trying to mount the root partition.
This modification makes the "/usr/share/initramfs-tools/scripts/local-premount/mdadm" wait for the end of the incremental assembly before moving over.
An explanation: md detection and assembly is done by udev. Each time a linux_raid partition is detected, udev calls mdadm to do an incremental assembly.
But nothing is done to be sure incremental assembly is over before trying to mount the root partition.
This modification makes the "/usr/share/ initramfs- tools/scripts/ local-premount/ mdadm" wait for the end of the incremental assembly before moving over.