aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Trepl (Moody) <thomas@linuxfromscratch.org>2022-07-24 05:45:23 +0200
committerThomas Trepl (Moody) <thomas@linuxfromscratch.org>2022-07-24 05:45:23 +0200
commit9c071773609627c22a98cf1f219044b1d4316e99 (patch)
tree611c4381aac63a7ff253e78ffca2c0bab79816cf
parentf8018d2ce536a1526d63b5ccf50e312966d7b5d6 (diff)
parent68e4fd59b2f68d2133f7e8256cf1c680fadfe26a (diff)
Automatic merge of trunk into multilib
-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
;;
*)