]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
systemd/mdmon: set IMSM_NO_PLATFORM=1
authorNeilBrown <neilb@suse.de>
Mon, 20 Jan 2014 22:46:07 +0000 (09:46 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 20 Jan 2014 22:46:07 +0000 (09:46 +1100)
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>
systemd/mdmon@.service

index 809f52739580b339995d7bc69fff95849c0675b8..2d0bcd8ff3606f1ad6bfb90f4be33c0abdccff91 100644 (file)
@@ -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