]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
multipath: remove multipath udev rules, if no multipath.conf was found
authorHarald Hoyer <harald@redhat.com>
Thu, 27 May 2010 12:34:02 +0000 (14:34 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 27 May 2010 12:34:02 +0000 (14:34 +0200)
modules.d/90multipath/multipathd.sh

index 851c08e5169fc5f1452db1b67a49b6b08d5cdfab..e26ab84ef22b0694bac2f7442bff6b0d20076471 100755 (executable)
@@ -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