Blame 0019-multipath-multipathd.service-add-more-Conditions.patch

Harald Hoyer eeb1c2
From 2b2033e561bbf35dcdf849b8014be5b9162b8bd6 Mon Sep 17 00:00:00 2001
Harald Hoyer eeb1c2
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer eeb1c2
Date: Tue, 25 Nov 2014 13:23:21 +0100
Harald Hoyer eeb1c2
Subject: [PATCH] multipath/multipathd.service: add more Conditions
Harald Hoyer eeb1c2
Harald Hoyer eeb1c2
Do not start multipathd on rd.multipath=0 rd_NO_MULTIPATH and if there
Harald Hoyer eeb1c2
is no multipath.conf.
Harald Hoyer eeb1c2
---
Harald Hoyer eeb1c2
 modules.d/90multipath/multipathd.service | 4 ++++
Harald Hoyer eeb1c2
 1 file changed, 4 insertions(+)
Harald Hoyer eeb1c2
Harald Hoyer eeb1c2
diff --git a/modules.d/90multipath/multipathd.service b/modules.d/90multipath/multipathd.service
Harald Hoyer eeb1c2
index 44a7b80..b64b02c 100644
Harald Hoyer eeb1c2
--- a/modules.d/90multipath/multipathd.service
Harald Hoyer eeb1c2
+++ b/modules.d/90multipath/multipathd.service
Harald Hoyer eeb1c2
@@ -3,6 +3,10 @@ Description=Device-Mapper Multipath Device Controller
Harald Hoyer eeb1c2
 Before=iscsi.service iscsid.service lvm2-activation-early.service
Harald Hoyer eeb1c2
 DefaultDependencies=no
Harald Hoyer eeb1c2
 Conflicts=shutdown.target
Harald Hoyer eeb1c2
+ConditionKernelCommandLine=!nompath
Harald Hoyer eeb1c2
+ConditionKernelCommandLine=!rd.multipath=0
Harald Hoyer eeb1c2
+ConditionKernelCommandLine=!rd_NO_MULTIPATH
Harald Hoyer eeb1c2
+ConditionPathExists=/etc/multipath.conf
Harald Hoyer eeb1c2
 
Harald Hoyer eeb1c2
 [Service]
Harald Hoyer eeb1c2
 Type=simple