Search
j0ke.net Open Build Service
>
Projects
>
home:jg
:
playground
>
dracut
> 0105-multipath-remove-multipath-udev-rules-if-no-multipat.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0105-multipath-remove-multipath-udev-rules-if-no-multipat.patch of Package dracut
From a2a62799f22f6542bdfbdc56ed1c213143857b70 Mon Sep 17 00:00:00 2001 From: Harald Hoyer <harald@redhat.com> Date: Thu, 27 May 2010 14:34:02 +0200 Subject: [PATCH] multipath: remove multipath udev rules, if no multipath.conf was found --- modules.d/90multipath/multipathd.sh | 6 ++++-- 1 file 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.8.3.1