]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Only generate hostonly-kernel-modules list in strict mode
authorKairui Song <kasong@redhat.com>
Tue, 20 Aug 2019 16:52:29 +0000 (00:52 +0800)
committerHarald Hoyer <harald@hoyer.xyz>
Wed, 23 Oct 2019 12:33:36 +0000 (14:33 +0200)
Fixes #617.

dracut.sh

index 87fcddfed672ca642fca6fc551846a9a77958fa8..b6ce6e56efd488c648403a37e6110f4e8739daeb 100755 (executable)
--- 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