From: Harald Hoyer Date: Fri, 28 Sep 2012 09:13:20 +0000 (+0200) Subject: dracut-functions.sh:get_persistent_dev() exception for multipath devices X-Git-Tag: 024~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9037b63e;p=thirdparty%2Fdracut.git dracut-functions.sh:get_persistent_dev() exception for multipath devices An exception is multipath devices, child and top layer device may have same uuid. As dm devices maintain /dev/mapper/* as persistent names, just do not doing converting for them. --- diff --git a/dracut-functions.sh b/dracut-functions.sh index cdadacdf0..1b896833a 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -245,7 +245,7 @@ get_persistent_dev() { _dev=$(udevadm info --query=name --name="$1" 2>/dev/null) [ -z "$_dev" ] && return - for i in /dev/disk/by-uuid/* /dev/disk/by-id/*; do + for i in /dev/mapper/* /dev/disk/by-uuid/* /dev/disk/by-id/*; do _tmp=$(udevadm info --query=name --name="$i" 2>/dev/null) if [ "$_tmp" = "$_dev" ]; then echo $i