]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Make sure to include the /usr/lib/firmware directory
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 18 Feb 2024 14:48:59 +0000 (15:48 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 18 Feb 2024 15:33:13 +0000 (16:33 +0100)
When creating a cpio, all parent directories have to be included
separately as well. We already did this properly for the parent
directories of the kernel modules directory but not yet for
/usr/lib/firmware which this commit fixes.

Fixes #2399

mkosi/kmod.py

index 9b2eeeb45eba79477a665adbba1a5e88ee565e0e..3d8cba725ab94cef697ab5434cb8bfef0af02616 100644 (file)
@@ -164,6 +164,9 @@ def gen_required_kernel_modules(
     yield modulesd
     yield modulesd / "kernel"
 
+    if (root / "usr/lib/firmware").exists():
+        yield root / "usr/lib/firmware"
+
     for d in (modulesd, root / "usr/lib/firmware"):
         for p in (root / d).rglob("*"):
             if p.is_dir():