Hello, recently I found mdadm and experiment with it. Unfortunately, I found that if I forgot to stop raid and detach all loopback devices that I used to construct it, then halt.sh failed to remount root FS read-only. It's because halt.sh only detach mounted loopback devices. So, I create a patch for halt.sh to detach any loopback devices after all addons stopped (it also works for lvm2)
Created attachment 120980 [details, diff] halt.sh.patch Patch for /etc/init.d/halt.sh
Anybody interested?
baselayout-2 has a vastly different approach to unmounting and shutting down. Could you test it and see if it needs patching for your setup?
Re-open if baselayout-2.0.0_rc5 doesn't fix this for you.