]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Fix possible hang in dracut 336/head
authorFabian Vogt <fvogt@suse.com>
Wed, 23 Sep 2015 10:12:08 +0000 (12:12 +0200)
committerDaniel Molkentin <daniel@molkentin.de>
Mon, 18 Dec 2017 23:04:35 +0000 (00:04 +0100)
- Caused by add_drivers+=" " in dracut.conf (bsc#923116)

Signed-off-by: Fabian Vogt <fvogt@suse.com>
dracut.sh

index 635fdb1c3fa8686ad474d1778666f9c46971d1d7..8daafc35d4b81e34b48955f034d125c6aeb882d3 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -1466,7 +1466,7 @@ if [[ $no_kernel != yes ]]; then
         hostonly='' instmods $drivers
     fi
 
-    if [[ $add_drivers ]]; then
+    if [[ -n "${add_drivers// }" ]]; then
         hostonly='' instmods -c $add_drivers
     fi
     if [[ $force_drivers ]]; then