Harald Hoyer 3610a1
From 598660bbe61ddc4bd3a3f9c754727d5676174b9e Mon Sep 17 00:00:00 2001
Harald Hoyer 3610a1
From: Harald Hoyer <harald@hoyer.xyz>
Harald Hoyer 3610a1
Date: Tue, 19 Dec 2017 14:36:45 +0100
Harald Hoyer 3610a1
Subject: [PATCH] Merge pull request #336 from danimo/add_drivers
Harald Hoyer 3610a1
Harald Hoyer 3610a1
Fix possible hang in dracut
Harald Hoyer 3610a1
---
Harald Hoyer 3610a1
 dracut.sh | 2 +-
Harald Hoyer 3610a1
 1 file changed, 1 insertion(+), 1 deletion(-)
Harald Hoyer 3610a1
Harald Hoyer 3610a1
diff --git a/dracut.sh b/dracut.sh
Harald Hoyer 3610a1
index 635fdb1c..8daafc35 100755
Harald Hoyer 3610a1
--- a/dracut.sh
Harald Hoyer 3610a1
+++ b/dracut.sh
Harald Hoyer 3610a1
@@ -1466,7 +1466,7 @@ if [[ $no_kernel != yes ]]; then
Harald Hoyer 3610a1
         hostonly='' instmods $drivers
Harald Hoyer 3610a1
     fi
Harald Hoyer 3610a1
 
Harald Hoyer 3610a1
-    if [[ $add_drivers ]]; then
Harald Hoyer 3610a1
+    if [[ -n "${add_drivers// }" ]]; then
Harald Hoyer 3610a1
         hostonly='' instmods -c $add_drivers
Harald Hoyer 3610a1
     fi
Harald Hoyer 3610a1
     if [[ $force_drivers ]]; then
Harald Hoyer 3610a1