]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
man: soft-deprecate Firmware{Include,Exclude}
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 1 Mar 2025 16:37:31 +0000 (17:37 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 14 Mar 2025 09:57:26 +0000 (10:57 +0100)
mkosi/resources/man/mkosi.1.md
mkosi/resources/man/mkosi.news.7.md

index 26ea799348723d3c7806dfd4af239007bf56d3b2..80c4a0f22718d2bbe84cd1be872f5d9cbd1fcccc 100644 (file)
@@ -1100,16 +1100,18 @@ boolean argument: either `1`, `yes`, or `true` to enable, or `0`, `no`,
 `KernelInitrdModules=`, `--kernel-modules-initrd-include=`
 :   Like `KernelModules=`, but specifies the kernel modules to include in the initrd.
 
-`FirmwareInclude=`, `--firmware-include=`
-:   Takes a list of regex patterns that specify firmware files to include in the image. Patterns should be
-    relative to `/usr/lib/firmware/<subdir>` paths. **mkosi** checks for a match anywhere in the firmware path
-    (e.g. `bcm8483` will match against `cxgb4/bcm8483.bin`). All firmware files that match any of the specified
-    patterns are included in the image.
-
-`FirmwareExclude=`, `--firmware-exclude=`
-:   Takes a list of regex patterns that specify firmware files to exclude from the image. Behaves the same as
-    `FirmwareInclude=` except that all firmware that match any of the specified patterns is excluded from the
-    image. Firmware specified with this option is excluded even if an included kernel module depends on it.
+`FirmwareFiles=`, `--firmware-files=`
+:   Takes a list of glob patterns that specify which firmware files to include in the image.
+    The patterns are interpreted in the same way as in the `KernelModules=` settings,
+    except that the paths are relative to `/usr/lib/firmware/<subdir>`.
+    The compression suffix is ignored and must not be included in the pattern.
+
+    Firmware files that listed by modules that are included in the image are
+    automatically included.
+
+    Example: `FirmwareFiles=cxgb4/bcm8483.bin` or `FirmwareFiles=bcm8483.*` would both cause
+    `/usr/lib/firmware/cxgb4/bcm8483.bin.xz` to be included,
+    even if not listed by a module.
 
 `Locale=`, `--locale=`, `LocaleMessages=`, `--locale-messages=`, `Keymap=`, `--keymap=`, `Timezone=`, `--timezone=`, `Hostname=`, `--hostname=`, `RootShell=`, `--root-shell=`
 :   The settings `Locale=`, `--locale=`, `LocaleMessages=`, `--locale-messages=`,
index 9c93a8aa20a217c94cd2156a82a7bfaa3b9c819d..5e2fea52b154720ab167fb93bc09d4b7dfadca15 100644 (file)
   deprecated and are replaced by a single option that takes a list of
   positive and negative globs. The new options are KernelModules=
   and KernelInitrdModules=.
+- A new way to specify firmware files included in the initrd has been added.
+  Previous separate Include and Exclude options that take regexps are now
+  deprecated and are replaced by a single option that takes a list of
+  positive and negative globs. The new option is FirmwareFiles=.
 
 ## v25