summaryrefslogtreecommitdiff
path: root/dracut-functions.sh
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2012-09-28 11:13:20 +0200
committerHarald Hoyer <harald@redhat.com>2012-09-28 15:29:47 +0200
commit9037b63eb2f5acf25430e1d552143780dbe4eb02 (patch)
treefd2e436703ae390d286920d31ea7ef2f1abed0d6 /dracut-functions.sh
parent308015bc4d47a7202bf201c20eb627c9c6a79e0e (diff)
downloaddracut-9037b63eb2f5acf25430e1d552143780dbe4eb02.tar.gz
dracut-9037b63eb2f5acf25430e1d552143780dbe4eb02.tar.bz2
dracut-9037b63eb2f5acf25430e1d552143780dbe4eb02.zip
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.
Diffstat (limited to 'dracut-functions.sh')
-rwxr-xr-xdracut-functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dracut-functions.sh b/dracut-functions.sh
index cdadacdf..1b896833 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