dracut.sh: turn off hostonly mode, if udev database is not found
authorHarald Hoyer <harald@redhat.com>
Wed, 20 Mar 2013 09:25:23 +0000 (10:25 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 20 Mar 2013 09:25:23 +0000 (10:25 +0100)
dracut.sh

index 9afa694..0a87cca 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -788,6 +788,10 @@ if [[ $hostonly ]]; then
             unset hostonly
         fi
     done
+    if ! [[ -d /run/udev/data ]]; then
+        dwarning "Turning off host-only mode: udev database not found!"
+        unset hostonly
+    fi
 fi
 
 declare -A host_fs_types