Blame SOURCES/0044-mdcheck-when-mdcheck_start-is-enabled-enable-mdcheck.patch

6e099e
From 6636788aaf4ec0cacaefb6e77592e4a68e70a957 Mon Sep 17 00:00:00 2001
6e099e
From: NeilBrown <neilb@suse.de>
6e099e
Date: Wed, 30 Oct 2019 10:32:41 +1100
6e099e
Subject: [RHEL7.8 PATCH V2 44/47] mdcheck: when mdcheck_start is enabled,
6e099e
 enable mdcheck_continue too.
6e099e
6e099e
mdcheck_continue continues a regular array scan that was started by
6e099e
mdcheck_start.
6e099e
mdcheck_start will ensure that mdcheck_continue is active.
6e099e
Howver if you reboot after a check has started, but before it finishes,
6e099e
then mdcheck_continue won't cause it to continue, because nothing
6e099e
starts it on boot.
6e099e
6e099e
So add an install option for mdcheck_contine, and make sure it
6e099e
gets enabled when mdcheck_start is enabled.
6e099e
6e099e
Signed-off-by: NeilBrown <neilb@suse.de>
6e099e
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
6e099e
---
6e099e
 systemd/mdcheck_continue.timer | 2 ++
6e099e
 systemd/mdcheck_start.timer    | 1 +
6e099e
 2 files changed, 3 insertions(+)
6e099e
6e099e
diff --git a/systemd/mdcheck_continue.timer b/systemd/mdcheck_continue.timer
6e099e
index 3ccfd78..dba1074 100644
6e099e
--- a/systemd/mdcheck_continue.timer
6e099e
+++ b/systemd/mdcheck_continue.timer
6e099e
@@ -11,3 +11,5 @@ Description=MD array scrubbing - continuation
6e099e
 [Timer]
6e099e
 OnCalendar= 1:05:00
6e099e
 
6e099e
+[Install]
6e099e
+WantedBy= mdmonitor.service
6e099e
diff --git a/systemd/mdcheck_start.timer b/systemd/mdcheck_start.timer
6e099e
index 6480736..9e7e02a 100644
6e099e
--- a/systemd/mdcheck_start.timer
6e099e
+++ b/systemd/mdcheck_start.timer
6e099e
@@ -13,3 +13,4 @@ OnCalendar=Sun *-*-1..7 1:00:00
6e099e
 
6e099e
 [Install]
6e099e
 WantedBy= mdmonitor.service
6e099e
+Also= mdcheck_continue.timer
6e099e
-- 
6e099e
2.7.5
6e099e