]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Fix KernelModulesInclude=
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 6 Nov 2023 19:54:31 +0000 (20:54 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 7 Nov 2023 08:09:45 +0000 (09:09 +0100)
We have to store the relative path, not the full path for the check
to work correctly.

mkosi/kmod.py

index a5894e48f1d4ceefc5568b30131d62949b1da8e1..a9286d49f391b7fe4e9b98c3895d7d352d60f60e 100644 (file)
@@ -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)