dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

Blame SOURCES/0046-SUSE-mdadm_env.sh-handle-MDADM_CHECK_DURATION.patch

f9a9f5
From 85b83a7920bca5b93d2458f093f2c640a130614c Mon Sep 17 00:00:00 2001
f9a9f5
From: NeilBrown <neilb@suse.de>
f9a9f5
Date: Wed, 30 Oct 2019 10:32:41 +1100
f9a9f5
Subject: [RHEL7.8 PATCH V2 46/47] SUSE-mdadm_env.sh: handle
f9a9f5
 MDADM_CHECK_DURATION
f9a9f5
f9a9f5
The suse sysconfig/mdadm allows MDADM_CHECK_DURATION
f9a9f5
to be set, but it is currently ignored.
f9a9f5
f9a9f5
Signed-off-by: NeilBrown <neilb@suse.de>
f9a9f5
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
f9a9f5
---
f9a9f5
 systemd/SUSE-mdadm_env.sh | 3 +++
f9a9f5
 1 file changed, 3 insertions(+)
f9a9f5
f9a9f5
diff --git a/systemd/SUSE-mdadm_env.sh b/systemd/SUSE-mdadm_env.sh
f9a9f5
index 10b2e74..c13b48a 100644
f9a9f5
--- a/systemd/SUSE-mdadm_env.sh
f9a9f5
+++ b/systemd/SUSE-mdadm_env.sh
f9a9f5
@@ -43,3 +43,6 @@ fi
f9a9f5
 
f9a9f5
 mkdir -p /run/sysconfig
f9a9f5
 echo "MDADM_MONITOR_ARGS=$MDADM_RAIDDEVICES $MDADM_DELAY $MDADM_MAIL $MDADM_PROGRAM $MDADM_SCAN $MDADM_SEND_MAIL $MDADM_CONFIG" > /run/sysconfig/mdadm
f9a9f5
+if [ -n "$MDADM_CHECK_DURATION" ]; then
f9a9f5
+ echo "MDADM_CHECK_DURATION=$MDADM_CHECK_DURATION" >> /run/sysconfig/mdadm
f9a9f5
+fi
f9a9f5
-- 
f9a9f5
2.7.5
f9a9f5