harald / rpms / dracut

Forked from rpms/dracut 5 years ago
Clone
Blob Blame History Raw
From 5705cd2edabd2d4ac3de65ba5378eb47a24ca7a2 Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@redhat.com>
Date: Thu, 27 May 2010 14:34:02 +0200
Subject: [PATCH 067/133] multipath: remove multipath udev rules, if no multipath.conf was found

---
 modules.d/90multipath/multipathd.sh |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

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
 
-- 
1.7.3