]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
multipath/multipathd.service: add more Conditions
authorHarald Hoyer <harald@redhat.com>
Tue, 25 Nov 2014 12:23:21 +0000 (13:23 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 25 Nov 2014 12:23:21 +0000 (13:23 +0100)
Do not start multipathd on rd.multipath=0 rd_NO_MULTIPATH and if there
is no multipath.conf.

modules.d/90multipath/multipathd.service

index 44a7b8001bf8a7642cc260a1e30776f2f8531141..b64b02cdfac17f3b15b46c489a5cff73721eb8ff 100644 (file)
@@ -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