aboutsummaryrefslogtreecommitdiffstats
path: root/bootscripts
diff options
context:
space:
mode:
Diffstat (limited to 'bootscripts')
-rw-r--r--bootscripts/ChangeLog5
-rw-r--r--bootscripts/lfs/init.d/mountfs5
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
;;
*)