From: Harald Hoyer Date: Thu, 27 May 2010 12:34:02 +0000 (+0200) Subject: multipath: remove multipath udev rules, if no multipath.conf was found X-Git-Tag: 006~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=123e24a3b510d70a5548d39d5b90de26fd1ba7fa;p=platform%2Fupstream%2Fdracut.git multipath: remove multipath udev rules, if no multipath.conf was found --- diff --git a/modules.d/90multipath/multipathd.sh b/modules.d/90multipath/multipathd.sh index 851c08e..e26ab84 100755 --- a/modules.d/90multipath/multipathd.sh +++ b/modules.d/90multipath/multipathd.sh @@ -1,7 +1,9 @@ #!/bin/sh if [ -e /etc/multipath.conf ]; then - modprobe dm-multipath - multipathd + modprobe dm-multipath + multipathd +else + rm /etc/udev/rules.d/??-multipath.rules 2>/dev/null fi