From: Fabian Vogt Date: Wed, 23 Sep 2015 10:12:08 +0000 (+0200) Subject: Fix possible hang in dracut X-Git-Tag: 047~55^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F336%2Fhead;p=thirdparty%2Fdracut.git Fix possible hang in dracut - Caused by add_drivers+=" " in dracut.conf (bsc#923116) Signed-off-by: Fabian Vogt --- 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