Blame 0079-dracut-functions.sh-get_persistent_dev-fix-case-for-.patch

Harald Hoyer 75f812
From 15c5c072f4fe44f39d60f2fa050a6b4ab05ee34f Mon Sep 17 00:00:00 2001
Harald Hoyer 75f812
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 75f812
Date: Fri, 31 May 2013 07:46:08 +0200
Harald Hoyer 75f812
Subject: [PATCH] dracut-functions.sh:get_persistent_dev() fix case for
Harald Hoyer 75f812
 multipath
Harald Hoyer 75f812
Harald Hoyer 75f812
/dev/mapper/mpath* is not a persistent device path
Harald Hoyer 75f812
Harald Hoyer 75f812
https://bugzilla.redhat.com/show_bug.cgi?id=969068
Harald Hoyer 75f812
---
Harald Hoyer 75f812
 dracut-functions.sh | 1 +
Harald Hoyer 75f812
 1 file changed, 1 insertion(+)
Harald Hoyer 75f812
Harald Hoyer 75f812
diff --git a/dracut-functions.sh b/dracut-functions.sh
Harald Hoyer 75f812
index 4a0e81a..3d88c9d 100755
Harald Hoyer 75f812
--- a/dracut-functions.sh
Harald Hoyer 75f812
+++ b/dracut-functions.sh
Harald Hoyer 75f812
@@ -254,6 +254,7 @@ get_persistent_dev() {
Harald Hoyer 75f812
     [ -z "$_dev" ] && return
Harald Hoyer 75f812
 
Harald Hoyer 75f812
     for i in /dev/mapper/* /dev/disk/by-uuid/* /dev/disk/by-id/*; do
Harald Hoyer 75f812
+        [[ $i == /dev/mapper/mpath* ]] && continue
Harald Hoyer 75f812
         _tmp=$(udevadm info --query=name --name="$i" 2>/dev/null)
Harald Hoyer 75f812
         if [ "$_tmp" = "$_dev" ]; then
Harald Hoyer 75f812
             echo $i