]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions.sh:get_persistent_dev() fix case for multipath
authorHarald Hoyer <harald@redhat.com>
Fri, 31 May 2013 05:46:08 +0000 (07:46 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 31 May 2013 05:47:01 +0000 (07:47 +0200)
/dev/mapper/mpath* is not a persistent device path

https://bugzilla.redhat.com/show_bug.cgi?id=969068

dracut-functions.sh

index 4a0e81ac1894f7ae0c0b1f5468eaab6c2a2bb1ea..3d88c9dafac0f64000aecbb378183a271baaef66 100755 (executable)
@@ -254,6 +254,7 @@ get_persistent_dev() {
     [ -z "$_dev" ] && return
 
     for i in /dev/mapper/* /dev/disk/by-uuid/* /dev/disk/by-id/*; do
+        [[ $i == /dev/mapper/mpath* ]] && continue
         _tmp=$(udevadm info --query=name --name="$i" 2>/dev/null)
         if [ "$_tmp" = "$_dev" ]; then
             echo $i