diff --git a/dracut.sh b/dracut.sh index 9afa6941..0a87cca3 100755 --- 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