From: Harald Hoyer Date: Tue, 25 Nov 2014 12:23:21 +0000 (+0100) Subject: multipath/multipathd.service: add more Conditions X-Git-Tag: 041~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b2033e561bbf35dcdf849b8014be5b9162b8bd6;p=thirdparty%2Fdracut.git multipath/multipathd.service: add more Conditions Do not start multipathd on rd.multipath=0 rd_NO_MULTIPATH and if there is no multipath.conf. --- diff --git a/modules.d/90multipath/multipathd.service b/modules.d/90multipath/multipathd.service index 44a7b8001..b64b02cdf 100644 --- a/modules.d/90multipath/multipathd.service +++ b/modules.d/90multipath/multipathd.service @@ -3,6 +3,10 @@ Description=Device-Mapper Multipath Device Controller Before=iscsi.service iscsid.service lvm2-activation-early.service DefaultDependencies=no Conflicts=shutdown.target +ConditionKernelCommandLine=!nompath +ConditionKernelCommandLine=!rd.multipath=0 +ConditionKernelCommandLine=!rd_NO_MULTIPATH +ConditionPathExists=/etc/multipath.conf [Service] Type=simple