2020-03-04 05:49:18 +01:00
|
|
|
From 85b83a7920bca5b93d2458f093f2c640a130614c Mon Sep 17 00:00:00 2001
|
2019-10-30 01:13:13 +01:00
|
|
|
From: NeilBrown <neilb@suse.de>
|
2020-03-04 05:49:18 +01:00
|
|
|
Date: Wed, 30 Oct 2019 10:32:41 +1100
|
2019-10-30 01:13:13 +01:00
|
|
|
Subject: [PATCH] SUSE-mdadm_env.sh: handle MDADM_CHECK_DURATION
|
2020-03-04 05:49:18 +01:00
|
|
|
Git-commit: 85b83a7920bca5b93d2458f093f2c640a130614c
|
|
|
|
Patch-mainline: mdadm-4.1+
|
|
|
|
References: bsc#1153258
|
2019-10-30 01:13:13 +01:00
|
|
|
|
|
|
|
The suse sysconfig/mdadm allows MDADM_CHECK_DURATION
|
|
|
|
to be set, but it is currently ignored.
|
|
|
|
|
|
|
|
Signed-off-by: NeilBrown <neilb@suse.de>
|
2020-03-04 05:49:18 +01:00
|
|
|
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
|
2019-10-30 01:13:13 +01:00
|
|
|
---
|
|
|
|
systemd/SUSE-mdadm_env.sh | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/systemd/SUSE-mdadm_env.sh b/systemd/SUSE-mdadm_env.sh
|
2020-03-04 05:49:18 +01:00
|
|
|
index 10b2e74..c13b48a 100644
|
2019-10-30 01:13:13 +01:00
|
|
|
--- a/systemd/SUSE-mdadm_env.sh
|
|
|
|
+++ b/systemd/SUSE-mdadm_env.sh
|
|
|
|
@@ -43,3 +43,6 @@ fi
|
|
|
|
|
|
|
|
mkdir -p /run/sysconfig
|
|
|
|
echo "MDADM_MONITOR_ARGS=$MDADM_RAIDDEVICES $MDADM_DELAY $MDADM_MAIL $MDADM_PROGRAM $MDADM_SCAN $MDADM_SEND_MAIL $MDADM_CONFIG" > /run/sysconfig/mdadm
|
|
|
|
+if [ -n "$MDADM_CHECK_DURATION" ]; then
|
|
|
|
+ echo "MDADM_CHECK_DURATION=$MDADM_CHECK_DURATION" >> /run/sysconfig/mdadm
|
|
|
|
+fi
|
|
|
|
--
|
2020-03-04 05:49:18 +01:00
|
|
|
2.25.0
|
2019-10-30 01:13:13 +01:00
|
|
|
|