|
|
5bf14f |
From e1512e7b7d060f0346738b237ea34eac21b29a26 Mon Sep 17 00:00:00 2001
|
|
|
5bf14f |
From: Xiao Ni <xni@redhat.com>
|
|
|
5bf14f |
Date: Wed, 18 Dec 2019 14:46:21 +0800
|
|
|
5bf14f |
Subject: [RHEL7.9 PATCH 55/71] mdcheck service can't start succesfully because
|
|
|
5bf14f |
of syntax error
|
|
|
5bf14f |
|
|
|
5bf14f |
It reports error when starting mdcheck_start and mdcheck_continue service.
|
|
|
5bf14f |
Invalid environment assignment, ignoring: MDADM_CHECK_DURATION="6 hours"
|
|
|
5bf14f |
|
|
|
5bf14f |
Signed-off-by: Xiao Ni <xni@redhat.com>
|
|
|
5bf14f |
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
|
|
|
5bf14f |
---
|
|
|
5bf14f |
systemd/mdcheck_continue.service | 2 +-
|
|
|
5bf14f |
systemd/mdcheck_start.service | 2 +-
|
|
|
5bf14f |
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
5bf14f |
|
|
|
5bf14f |
diff --git a/systemd/mdcheck_continue.service b/systemd/mdcheck_continue.service
|
|
|
5bf14f |
index deac695..aa02dde 100644
|
|
|
5bf14f |
--- a/systemd/mdcheck_continue.service
|
|
|
5bf14f |
+++ b/systemd/mdcheck_continue.service
|
|
|
5bf14f |
@@ -11,7 +11,7 @@ ConditionPathExistsGlob = /var/lib/mdcheck/MD_UUID_*
|
|
|
5bf14f |
|
|
|
5bf14f |
[Service]
|
|
|
5bf14f |
Type=oneshot
|
|
|
5bf14f |
-Environment= MDADM_CHECK_DURATION="6 hours"
|
|
|
5bf14f |
+Environment= "MDADM_CHECK_DURATION=6 hours"
|
|
|
5bf14f |
EnvironmentFile=-/run/sysconfig/mdadm
|
|
|
5bf14f |
ExecStartPre=-/usr/lib/mdadm/mdadm_env.sh
|
|
|
5bf14f |
ExecStart=/usr/share/mdadm/mdcheck --continue --duration ${MDADM_CHECK_DURATION}
|
|
|
5bf14f |
diff --git a/systemd/mdcheck_start.service b/systemd/mdcheck_start.service
|
|
|
5bf14f |
index f17f1aa..da62d5f 100644
|
|
|
5bf14f |
--- a/systemd/mdcheck_start.service
|
|
|
5bf14f |
+++ b/systemd/mdcheck_start.service
|
|
|
5bf14f |
@@ -11,7 +11,7 @@ Wants=mdcheck_continue.timer
|
|
|
5bf14f |
|
|
|
5bf14f |
[Service]
|
|
|
5bf14f |
Type=oneshot
|
|
|
5bf14f |
-Environment= MDADM_CHECK_DURATION="6 hours"
|
|
|
5bf14f |
+Environment= "MDADM_CHECK_DURATION=6 hours"
|
|
|
5bf14f |
EnvironmentFile=-/run/sysconfig/mdadm
|
|
|
5bf14f |
ExecStartPre=-/usr/lib/mdadm/mdadm_env.sh
|
|
|
5bf14f |
ExecStart=/usr/share/mdadm/mdcheck --duration ${MDADM_CHECK_DURATION}
|
|
|
5bf14f |
--
|
|
|
5bf14f |
2.7.5
|
|
|
5bf14f |
|