From d53bb5c01737270049fde82559ae72aae1943b81 Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Wed, 23 Sep 2015 12:12:08 +0200 Subject: [PATCH] Fix possible hang in dracut - Caused by add_drivers+=" " in dracut.conf (bsc#923116) Signed-off-by: Fabian Vogt --- dracut.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut.sh b/dracut.sh index 635fdb1c3..8daafc35d 100755 --- 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 -- 2.47.2