dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

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

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