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