diff options
author | Thomas Trepl (Moody) <thomas@linuxfromscratch.org> | 2022-07-23 22:42:36 +0200 |
---|---|---|
committer | Thomas Trepl (Moody) <thomas@linuxfromscratch.org> | 2022-07-23 22:42:36 +0200 |
commit | 68e4fd59b2f68d2133f7e8256cf1c680fadfe26a (patch) | |
tree | f7cb10723524aeae4c1c881ae9a009a0f1191606 /bootscripts | |
parent | d060b33545be7f684e43094a86c24e4c8bd84975 (diff) |
Mark raid array as clean at shutdown
Diffstat (limited to 'bootscripts')
-rw-r--r-- | bootscripts/ChangeLog | 5 | ||||
-rw-r--r-- | bootscripts/lfs/init.d/mountfs | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/bootscripts/ChangeLog b/bootscripts/ChangeLog index 16d8e8006..c1b590568 100644 --- a/bootscripts/ChangeLog +++ b/bootscripts/ChangeLog @@ -1,3 +1,8 @@ +2022-07-23 Thomas Trepl <thomas@linuxfromscratch.org> + * Mark an raid array clean when root (/) has been remounted + r/o when system goes down. Otherwise, array does remain + always 'dirty', causing a resync at next boot. + 2022-03-24 Pierre Labastie <pierre dot labastie at neuf dot fr> * New semantics for K and S scripts: - S scripts only started if not already marked S in the previous runlevel diff --git a/bootscripts/lfs/init.d/mountfs b/bootscripts/lfs/init.d/mountfs index 6bf2d6f2f..ea413392e 100644 --- a/bootscripts/lfs/init.d/mountfs +++ b/bootscripts/lfs/init.d/mountfs @@ -67,6 +67,11 @@ case "${1}" in # Make all LVM volume groups unavailable, if appropriate # This fails if swap or / are on an LVM partition #if [ -x /sbin/vgchange ]; then /sbin/vgchange -an > /dev/null; fi + if [ -r /etc/mdadm.conf ]; then + log_info_msg "Mark arrays as clean..." + mdadm --wait-clean --scan + evaluate_retval + fi ;; *) |