dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

Blame SOURCES/0048-mdcheck-service-can-t-start-succesfully-because-of-s.patch

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