Note: "Installing mdadm package from Ubuntu 16.10 fixes the problem." is probably incorrect. It seems that the above steps cause boot to fail even aftern installing mdadm version 3.4.
Note: "Installing mdadm package from Ubuntu 16.10 fixes the problem." is probably incorrect. It seems that the above steps cause boot to fail even aftern installing mdadm version 3.4.