From: Daan De Meyer Date: Mon, 6 Nov 2023 19:54:31 +0000 (+0100) Subject: Fix KernelModulesInclude= X-Git-Tag: v19~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6cbadef9e88a119f269a2c3b329f8a57c88445f;p=thirdparty%2Fmkosi.git Fix KernelModulesInclude= We have to store the relative path, not the full path for the check to work correctly. --- diff --git a/mkosi/kmod.py b/mkosi/kmod.py index a5894e48f..a9286d49f 100644 --- a/mkosi/kmod.py +++ b/mkosi/kmod.py @@ -22,7 +22,7 @@ def filter_kernel_modules(root: Path, kver: str, include: Sequence[str], exclude rel = os.fspath(m.relative_to(modulesd / "kernel")) if regex.search(rel): logging.debug(f"Including module {rel}") - keep.add(m) + keep.add(rel) for pattern in exclude: regex = re.compile(pattern)