summaryrefslogtreecommitdiffstats
path: root/systemd/mdadm.shutdown
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--systemd/mdadm.shutdown4
1 files changed, 4 insertions, 0 deletions
diff --git a/systemd/mdadm.shutdown b/systemd/mdadm.shutdown
new file mode 100644
index 0000000..33f2778
--- /dev/null
+++ b/systemd/mdadm.shutdown
@@ -0,0 +1,4 @@
+#!/bin/sh
+# We need to ensure all md arrays with external metadata
+# (e.g. IMSM, DDF) are clean before completing the shutdown.
+BINDIR/mdadm --wait-clean --scan