From: Martin Hundebøll Date: Fri, 3 Jan 2025 11:05:08 +0000 (+0100) Subject: Be less explicit about module matching sub directories X-Git-Tag: v25~78^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b67d9048ddabc1257efaf32a93381238672fdd6f;p=thirdparty%2Fmkosi.git Be less explicit about module matching sub directories 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. --- diff --git a/mkosi/resources/man/mkosi.1.md b/mkosi/resources/man/mkosi.1.md index f9b4f7fe5..733cdcd77 100644 --- a/mkosi/resources/man/mkosi.1.md +++ b/mkosi/resources/man/mkosi.1.md @@ -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//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//` 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.