summaryrefslogtreecommitdiff
path: root/systemd/mdadm.shutdown
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/mdadm.shutdown')
-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 00000000..33f27783
--- /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