From 9037b63eb2f5acf25430e1d552143780dbe4eb02 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 28 Sep 2012 11:13:20 +0200 Subject: [PATCH] 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. --- dracut-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3