'grub-install /dev/md0' fails when /dev/md0 is a RAID1 (mirror) and one of the members is flagged as writemostly. The awk parsing doesn't account for the extra flag in the mdadm output.
↧