51 lines
1.8 KiB
Diff
51 lines
1.8 KiB
Diff
|
From e1512e7b7d060f0346738b237ea34eac21b29a26 Mon Sep 17 00:00:00 2001
|
||
|
From: Xiao Ni <xni@redhat.com>
|
||
|
Date: Wed, 18 Dec 2019 14:46:21 +0800
|
||
|
Subject: [PATCH] mdcheck service can't start succesfully because of syntax
|
||
|
error
|
||
|
Git-commit: e1512e7b7d060f0346738b237ea34eac21b29a26
|
||
|
Patch-mainline: mdadm-4.1+
|
||
|
References: jsc#SLE-10078, jsc#SLE-9348
|
||
|
|
||
|
It reports error when starting mdcheck_start and mdcheck_continue service.
|
||
|
Invalid environment assignment, ignoring: MDADM_CHECK_DURATION="6 hours"
|
||
|
|
||
|
Signed-off-by: Xiao Ni <xni@redhat.com>
|
||
|
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
|
||
|
Signed-off-by: Coly Li <colyli@suse.de>
|
||
|
|
||
|
---
|
||
|
systemd/mdcheck_continue.service | 2 +-
|
||
|
systemd/mdcheck_start.service | 2 +-
|
||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/systemd/mdcheck_continue.service b/systemd/mdcheck_continue.service
|
||
|
index deac695..aa02dde 100644
|
||
|
--- a/systemd/mdcheck_continue.service
|
||
|
+++ b/systemd/mdcheck_continue.service
|
||
|
@@ -11,7 +11,7 @@ ConditionPathExistsGlob = /var/lib/mdcheck/MD_UUID_*
|
||
|
|
||
|
[Service]
|
||
|
Type=oneshot
|
||
|
-Environment= MDADM_CHECK_DURATION="6 hours"
|
||
|
+Environment= "MDADM_CHECK_DURATION=6 hours"
|
||
|
EnvironmentFile=-/run/sysconfig/mdadm
|
||
|
ExecStartPre=-/usr/lib/mdadm/mdadm_env.sh
|
||
|
ExecStart=/usr/share/mdadm/mdcheck --continue --duration ${MDADM_CHECK_DURATION}
|
||
|
diff --git a/systemd/mdcheck_start.service b/systemd/mdcheck_start.service
|
||
|
index f17f1aa..da62d5f 100644
|
||
|
--- a/systemd/mdcheck_start.service
|
||
|
+++ b/systemd/mdcheck_start.service
|
||
|
@@ -11,7 +11,7 @@ Wants=mdcheck_continue.timer
|
||
|
|
||
|
[Service]
|
||
|
Type=oneshot
|
||
|
-Environment= MDADM_CHECK_DURATION="6 hours"
|
||
|
+Environment= "MDADM_CHECK_DURATION=6 hours"
|
||
|
EnvironmentFile=-/run/sysconfig/mdadm
|
||
|
ExecStartPre=-/usr/lib/mdadm/mdadm_env.sh
|
||
|
ExecStart=/usr/share/mdadm/mdcheck --duration ${MDADM_CHECK_DURATION}
|
||
|
--
|
||
|
2.25.0
|
||
|
|