X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fhooks%2Fmountdisks.DEFAULT;fp=fai%2Fconfig%2Fhooks%2Fmountdisks.DEFAULT;h=95e6a2b15e8148d9882bf02fa3a9f1abf7429f89;hb=bc3037fe2075e33b0035fc0689f44a60381638f9;hp=0000000000000000000000000000000000000000;hpb=2773c14668a490a1254a63541e1ef9fd3377104b;p=automated-distro-installer diff --git a/fai/config/hooks/mountdisks.DEFAULT b/fai/config/hooks/mountdisks.DEFAULT new file mode 100755 index 0000000..95e6a2b --- /dev/null +++ b/fai/config/hooks/mountdisks.DEFAULT @@ -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