]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions.sh:get_persistent_dev() do not check non-existent dirs
authorHarald Hoyer <harald@redhat.com>
Fri, 23 Aug 2013 17:04:12 +0000 (19:04 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 23 Aug 2013 17:04:12 +0000 (19:04 +0200)
dracut-functions.sh

index 8a1b73fcf1aa70b81e41ebd61dd4a8477caa568c..c89d81685709fd64470f7b10054e8bbaa5ca329f 100755 (executable)
@@ -313,6 +313,7 @@ get_persistent_dev() {
         /dev/disk/by-id/* \
         /dev/disk/by-path/* \
         ; do
+        [[ -e "$i" ]] || continue
         [[ $i == /dev/mapper/control ]] && continue
         [[ $i == /dev/mapper/mpath* ]] && continue
         _tmp=$(get_maj_min "$i")