It may be possible to relocate the mdadm logic. I don't know, but I'm pretty sure this is not a nut bug.
It may not have been clear from my initial report, but nut is doing
precisely the correct thing at exactly the right time by shutting down
the power after the system is quiet and remaining mounts are read-only.
Keep in mind that it's only doing this during the process of orderly
shutdown due to power failure. Otherwise, /sbin/upsmon -K will return
an error.
- Bug#1036568: Design Defect in systemd-poweroff.service (Race... Alex Meyer
- Bug#1036568: Design Defect in systemd-poweroff.service ... Luca Boccassi
- Bug#1036568: Clarification Alex Meyer
- Bug#1036568: Additional Observation Alex Meyer