Blame 0071-dracut.sh-turn-off-hostonly-mode-if-udev-database-is.patch

Harald Hoyer 4413d3
From 78d1d4f86d8c8ad01cfa21be41852ee52db78bed Mon Sep 17 00:00:00 2001
Harald Hoyer 4413d3
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 4413d3
Date: Wed, 20 Mar 2013 10:25:23 +0100
Harald Hoyer 4413d3
Subject: [PATCH] dracut.sh: turn off hostonly mode, if udev database is not
Harald Hoyer 4413d3
 found
Harald Hoyer 4413d3
Harald Hoyer 4413d3
---
Harald Hoyer 4413d3
 dracut.sh | 4 ++++
Harald Hoyer 4413d3
 1 file changed, 4 insertions(+)
Harald Hoyer 4413d3
Harald Hoyer 4413d3
diff --git a/dracut.sh b/dracut.sh
Harald Hoyer 4413d3
index 9afa694..0a87cca 100755
Harald Hoyer 4413d3
--- a/dracut.sh
Harald Hoyer 4413d3
+++ b/dracut.sh
Harald Hoyer 4413d3
@@ -788,6 +788,10 @@ if [[ $hostonly ]]; then
Harald Hoyer 4413d3
             unset hostonly
Harald Hoyer 4413d3
         fi
Harald Hoyer 4413d3
     done
Harald Hoyer 4413d3
+    if ! [[ -d /run/udev/data ]]; then
Harald Hoyer 4413d3
+        dwarning "Turning off host-only mode: udev database not found!"
Harald Hoyer 4413d3
+        unset hostonly
Harald Hoyer 4413d3
+    fi
Harald Hoyer 4413d3
 fi
Harald Hoyer 4413d3
 
Harald Hoyer 4413d3
 declare -A host_fs_types