From 67ee238316785481a8ad440e531cae6c4dce36a4 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 21 Jan 2014 09:46:07 +1100 Subject: [PATCH 12/13] 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 --- systemd/mdmon@.service | 3 +++ 1 file changed, 3 insertions(+) --- mdadm-3.3.orig/systemd/mdmon@.service +++ mdadm-3.3/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