summaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-01-20 23:46:07 +0100
committerNeilBrown <neilb@suse.de>2014-01-20 23:46:07 +0100
commit67ee238316785481a8ad440e531cae6c4dce36a4 (patch)
tree5792ec90710b274f78967716d86e5c1789e35c6c /systemd
parentmdmon: don't complain about notifying parent when there is no need (diff)
downloadmdadm-67ee238316785481a8ad440e531cae6c4dce36a4.tar.xz
mdadm-67ee238316785481a8ad440e531cae6c4dce36a4.zip
systemd/mdmon: set IMSM_NO_PLATFORM=1
As mdmon doesn't inherit environment from mdadm when it is started by system, it cannot inherit IMSM_NO_PLATFORM. But if an imsm array as assembled then mdmon really should handle it whether there is a platform present or not. So always set this var. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'systemd')
-rw-r--r--systemd/mdmon@.service3
1 files changed, 3 insertions, 0 deletions
diff --git a/systemd/mdmon@.service b/systemd/mdmon@.service
index 809f5273..2d0bcd8f 100644
--- a/systemd/mdmon@.service
+++ b/systemd/mdmon@.service
@@ -11,6 +11,9 @@ DefaultDependencies=no
Before=initrd-switch-root.target
[Service]
+# mdmon should never complain due to lack of a platform,
+# that is mdadm's job if at all.
+Environment=IMSM_NO_PLATFORM=1
ExecStart=/sbin/mdmon --foreground %I
StandardInput=null
StandardOutput=null