diff --git a/dracut-functions.sh b/dracut-functions.sh index 4535871b60..6cb13dd581 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -294,7 +294,7 @@ get_persistent_dev() { /dev/disk/by-partlabel/* \ /dev/disk/by-id/* \ /dev/disk/by-path/*; do - [[ -e $i ]] || continue + [[ -f $i ]] || continue [[ $i == /dev/mapper/control ]] && continue [[ $i == /dev/mapper/mpath* ]] && continue _tmp=$(get_maj_min "$i")