From: Daan De Meyer Date: Tue, 5 Mar 2024 07:51:39 +0000 (+0100) Subject: Skip process_kernel_modules if exclude is set X-Git-Tag: v21~11^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6786805eae166cf6e3d4c40922eb7a78dd76191;p=thirdparty%2Fmkosi.git Skip process_kernel_modules if exclude is set include doesn't have any effect if exclude is not set so only check exclude. --- diff --git a/mkosi/kmod.py b/mkosi/kmod.py index 24cd59485..1382457b6 100644 --- a/mkosi/kmod.py +++ b/mkosi/kmod.py @@ -199,7 +199,7 @@ def process_kernel_modules( host: bool, sandbox: SandboxProtocol = nosandbox, ) -> None: - if not include and not exclude: + if not exclude: return with complete_step("Applying kernel module filters"):