From: Harald Hoyer Date: Fri, 31 May 2013 05:46:08 +0000 (+0200) Subject: dracut-functions.sh:get_persistent_dev() fix case for multipath X-Git-Tag: 028~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15c5c072f4fe44f39d60f2fa050a6b4ab05ee34f;p=thirdparty%2Fdracut.git dracut-functions.sh:get_persistent_dev() fix case for multipath /dev/mapper/mpath* is not a persistent device path https://bugzilla.redhat.com/show_bug.cgi?id=969068 --- diff --git a/dracut-functions.sh b/dracut-functions.sh index 4a0e81ac1..3d88c9daf 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -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