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>
This commit is contained in:
NeilBrown 2014-01-21 09:46:07 +11:00
parent 5e57245e3f
commit 67ee238316
1 changed files with 3 additions and 0 deletions

View 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