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

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