From a69e6c4eae9c7df05da75ce52348e43c33da1a70 Mon Sep 17 00:00:00 2001 From: Kairui Song Date: Wed, 21 Aug 2019 00:52:29 +0800 Subject: [PATCH] Only generate hostonly-kernel-modules list in strict mode Fixes #617. --- dracut.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut.sh b/dracut.sh index 87fcddfe..b6ce6e56 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