]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Be less explicit about module matching sub directories
authorMartin Hundebøll <martin@geanix.com>
Fri, 3 Jan 2025 11:05:08 +0000 (12:05 +0100)
committerMartin Hundebøll <martin@geanix.com>
Mon, 6 Jan 2025 09:23:43 +0000 (10:23 +0100)
The kernel module include/exclude logic matches against paths below any
folder in /usr/lib/modules/$(uname -r)/*/, and not just the `kernel`
folder. Replace the explicitly mentioned `kernel` folder from the
example path with an asterisk to make it clear the folders like `extra`
and `updates` are searched too.

mkosi/resources/man/mkosi.1.md

index f9b4f7fe5190a5254de8e7bed006d22f6215c18d..733cdcd77cd07fe17442ee9b757e5157667abffc 100644 (file)
@@ -1016,10 +1016,10 @@ boolean argument: either `1`, `yes`, or `true` to enable, or `0`, `no`,
 
 `KernelModulesInclude=`, `--kernel-modules-include=`
 :   Takes a list of regex patterns that specify kernel modules to include in the image. Patterns should be
-    relative to the `/usr/lib/modules/<kver>/kernel` directory. mkosi checks for a match anywhere in the module
-    path (e.g. `i915` will match against `drivers/gpu/drm/i915.ko`). All modules that match any of the
-    specified patterns are included in the image. All module and firmware dependencies of the matched modules
-    are included in the image as well.
+    relative to `/usr/lib/modules/<kver>/<subdir>` paths. mkosi checks for a match anywhere in the module path
+    (e.g. `i915` will match against `drivers/gpu/drm/i915.ko`). All modules that match any of the specified
+    patterns are included in the image. All module and firmware dependencies of the matched modules are included
+    in the image as well.
 
     If the special value `default` is used, the default kernel modules
     defined in the `mkosi-initrd` configuration are included as well.