aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/init.d/halt2
1 files changed, 2 insertions, 0 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index 3ddaa73d..71303e9f 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -180,6 +180,8 @@ done
# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
+ sync
+ HALTARGS="$HALTARGS -n"
mdadm --wait-clean --scan
fi