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
master
Harald Hoyer 2013-05-31 07:46:08 +02:00
parent caf207afa7
commit 15c5c072f4
1 changed files with 1 additions and 0 deletions

View File

@ -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