From: Kairui Song Date: Tue, 20 Aug 2019 16:52:29 +0000 (+0800) Subject: Only generate hostonly-kernel-modules list in strict mode X-Git-Tag: 050~140 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a69e6c4eae9c7df05da75ce52348e43c33da1a70;p=thirdparty%2Fdracut.git Only generate hostonly-kernel-modules list in strict mode Fixes #617. --- diff --git a/dracut.sh b/dracut.sh index 87fcddfed..b6ce6e56e 100755 --- a/dracut.sh +++ b/dracut.sh @@ -1501,7 +1501,7 @@ dinfo "*** Including modules done ***" ## final stuff that has to happen if [[ $no_kernel != yes ]]; then - if [[ $hostonly ]]; then + if [[ $hostonly_mode = "strict" ]]; then cp "$DRACUT_KERNEL_MODALIASES" $initdir/lib/dracut/hostonly-kernel-modules.txt fi