#!/bin/sh # We need to ensure all md array with external metadata # (e.g. IMSM) are clean before completing the shutdown. /sbin/mdadm --wait-clean --scan