upstream 00f2ea2b8 as of 2018-09-02
[automated-distro-installer] / fai / config / hooks / mountdisks.DEFAULT
diff --git a/fai/config/hooks/mountdisks.DEFAULT b/fai/config/hooks/mountdisks.DEFAULT
new file mode 100755 (executable)
index 0000000..95e6a2b
--- /dev/null
@@ -0,0 +1,9 @@
+#! /bin/bash
+
+# stop resync of soft raid
+if [ $do_init_tasks -eq 1 ]; then
+   if grep -q active /proc/mdstat 2>/dev/null; then
+       echo "frozen" | tee /sys/block/md*/md/sync_action >/dev/null
+   fi
+fi
+exit 0