From 055a320b2a44c9fe95ecd2fffa876171d3d4d174 Mon Sep 17 00:00:00 2001 From: Septatrix <24257556+Septatrix@users.noreply.github.com> Date: Mon, 18 Mar 2024 01:08:45 +0100 Subject: [PATCH] Fix inclusion of firmware files --- mkosi/kmod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkosi/kmod.py b/mkosi/kmod.py index 06dfed618..299743151 100644 --- a/mkosi/kmod.py +++ b/mkosi/kmod.py @@ -163,7 +163,7 @@ def gen_required_kernel_modules( # There is firmware in /usr/lib/firmware that is not depended on by any modules so if any firmware was installed # we have to take the slow path to make sure we don't copy firmware into the initrd that is not depended on by any # kernel modules. - if exclude or not (root / "usr/lib/firmware").glob("*"): + if exclude or (root / "usr/lib/firmware").glob("*"): modules = filter_kernel_modules(root, kver, include=include, exclude=exclude, host=host) names = [module_path_to_name(m) for m in modules] mods, firmware = resolve_module_dependencies(root, kver, names, sandbox=sandbox) -- 2.47.2