diff options
Diffstat (limited to 'metadata/news')
-rw-r--r-- | metadata/news/2024-05-17-dracut-ext-kmods/2024-05-17-dracut-ext-kmods.en.txt | 122 | ||||
-rw-r--r-- | metadata/news/Manifest | 30 | ||||
-rw-r--r-- | metadata/news/Manifest.files.gz | bin | 17832 -> 18015 bytes | |||
-rw-r--r-- | metadata/news/timestamp.chk | 2 | ||||
-rw-r--r-- | metadata/news/timestamp.commit | 2 |
5 files changed, 139 insertions, 17 deletions
diff --git a/metadata/news/2024-05-17-dracut-ext-kmods/2024-05-17-dracut-ext-kmods.en.txt b/metadata/news/2024-05-17-dracut-ext-kmods/2024-05-17-dracut-ext-kmods.en.txt new file mode 100644 index 000000000000..af58a6386afe --- /dev/null +++ b/metadata/news/2024-05-17-dracut-ext-kmods/2024-05-17-dracut-ext-kmods.en.txt @@ -0,0 +1,122 @@ +Title: Changes to dracut kernel module/microcode handling +Author: Andrew Ammerlaan <andrewammerlaan@gentoo.org> +Posted: 2024-05-17 +Revision: 2 +News-Item-Format: 2.0 +Display-If-Installed: sys-kernel/dracut +Display-If-Installed: virtual/dist-kernel +Display-If-Installed: sys-kernel/linux-firmware +Display-If-Installed: sys-firmware/intel-microcode + + +Impact +==================== + +Several changes were made regarding out-of-tree kernel modules, CPU +microcode, and how these are handled in initial RAM file systems +(initramfs) generated by sys-kernel/dracut for distribution kernels. +Depending on the local Dracut and USE flag configuration, some +configuration adjustments may be required as a result of these changes. + + +Background (the problem) +==================== + +Previously Dracut implicitly included all out-of-tree kernel modules +it could find. This leads to several problems: +- It unnecessarily increases the size of the initramfs +- It creates a bit of a mess when using distribution kernels, consider + the following: + 1) Distribution kernel is upgraded + 2) Initramfs for the new kernel is generated, it does not include + any out-of-tree kernel modules. + 3) Portage triggers rebuild of the out-of-tree kernel modules + 4) If zfs is installed, its rebuild will trigger an initramfs + re-installation. Otherwise no rebuild is triggered. + Problem: What is and is not included in the initramfs is now + ambiguous. It depends on the emerge order of the kernel modules + when zfs is used. And will completely change if at some later stage + regeneration of the initramfs is triggered manually via e.g.: + emerge --config sys-kernel/gentoo-kernel + As a result, Dracut's "--reproducible" setting is not working. And + the functionality of the initramfs may change (seemingly) at random. + + +Background (the fix) +==================== + +Several things have been changed: +- Out-of-tree kernel modules installed by portage are explicitly omitted + from the initramfs generated by Dracut by default. +- Packages that install a kernel module for which it might make sense to + have it in the initramfs, have gained the "initramfs" USE flag. When + this flag is enabled, Dracut is instructed to include the installed + kernel modules. Packages for which it is essential that its kernel + modules are included in the initramfs have this new flag enabled + by default. +- When distribution kernels are used (USE=dist-kernel), and a module + that should be in the initramfs is installed (USE=initramfs) the + initramfs is always re-generated. +- The packages installing CPU microcode (sys-kernel/linux-firmware + and sys-firmware/intel-microcode) have been adjusted to mirror the + above changes for out-of-tree kernel modules. Both packages + have gained the "dist-kernel" USE flag, and the "initramfs" flag is + now enabled by default. When both flags are enabled, Dracut is + configured to include the installed microcode in the initramfs, and + then the initramfs is regenerated. When the "dist-kernel" flag is + disabled, the "initramfs" flag behaves as it previously did. + + +User Action Required (Dracut and/or Distribution Kernel users) +==================== + +Users of sys-kernel/dracut and/or Distribution Kernels should double +check two things: +1) Please ensure that you are *not* globally enabling or disabling + the "initramfs" USE flag. Enabling it globally might result in an + unnecessarily large initramfs. Disabling it globally might result + in missing functionality in the initramfs. Which could lead to boot + failure if, for example, the zfs module is missing while the root + partition is a zfs. +2) Any add_drivers, or omit_drivers lines in /etc/dracut.conf or + /etc/dracut.conf.d/* may override the Dracut configuration snippets + installed by the kernel module packages in + /usr/lib/dracut/dracut.conf.d. Please review your Dracut + configuration files to ensure that you are not unintentionally + overriding the settings set by Portage. + + +User Action Required (other users) +==================== + +Other users may wish to disable the "initramfs" USE flag on +sys-kernel/linux-firmware and/or sys-firmware/intel-microcode +if they already have other mechanisms in place for updating the CPU +microcode (such as kernel built-in CPU microcode). Users who do not +use sys-kernel/dracut or Distribution Kernels can safely disable +the "initramfs" USE flag globally. + + +Frequently Asked Questions +==================== + +A package installing a kernel module I would like in my initramfs has +not gained the "initramfs" USE flag. How do I proceed? + + Please report a new bug on bugs.gentoo.org, requesting that the + package maintainer consider adding support to the package for + including the modules in the initramfs. In the meantime you can + locally override the configuration provided by the package (see + below). Note though that when distribution kernels are used, + regeneration of the initramfs must be triggered manually via e.g.: + emerge --config sys-kernel/gentoo-kernel + +How do I override the provided Dracut configuration snippets to +include/exclude a custom list of modules? + + To override the provided configuration snippet, create a new file + /etc/dracut.conf.d/10-PACKAGENAME.conf, replacing PACKAGENAME with + the name of the package providing the module. Add to this file: + omit_drivers+=" my list of drivers to omit " + and/or + add_drivers+=" my list of drivers to include " diff --git a/metadata/news/Manifest b/metadata/news/Manifest index 090d6cedd39d..23dc4d1e7898 100644 --- a/metadata/news/Manifest +++ b/metadata/news/Manifest @@ -1,23 +1,23 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 -MANIFEST Manifest.files.gz 17832 BLAKE2B 4e831695fbc4aea74cfccef24bbec092bfd0784a1fe989bd352a21fd4b70f3c719ead600407d929ebe70bdbb5e37bf22d0df7b0d0698cbb7d28b0cbb0a7f2818 SHA512 3cc5ae24818e441146a10260955c9c57e5ad4ae892152405c8481b5e1b8553533b0fcba67ef7ccfcfc819291693bd313fb3d9b1a8e14d67aca1a08316f49aaaf -TIMESTAMP 2024-05-14T22:10:36Z +MANIFEST Manifest.files.gz 18015 BLAKE2B 0f236b16aa7102e94bdd290c9f35570b14fb7fd85c65d186e87b6144aaab308d7d7d90c949a1a279026ed000388dfc6d58203e21b0ea6f443155b2f84bd0dac1 SHA512 f7c4e16fcc69c01f6670c47e53c3d66dee0c1805037a50a3c5b41e311cff17079a9031b211bdfb4ad68df22ad33fe9c562c28c14eec3932a15d0e9e3a86b3533 +TIMESTAMP 2024-05-21T21:36:41Z -----BEGIN PGP SIGNATURE----- -iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7FkO6skYklAFAmZD4VxfFIAAAAAALgAo +iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7Fk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/P +xRHwjQLwSW/6zzPvgmM3KtBn16qVp3gXQeDahd+RjEMOQzjso7KQsbOpWxflTyx0 +uiK66P3q0jcjXnP4zzudObKBkV/cYYcg/4n/3CKS0UncWtxIniH3Z+ZB06pHWf16 +fS4t5pO6KdJtGwmyEgpUk4/ojltq40e4DtMiFIa8CJlsGuMzrMW03RETKRm+BqcW +qRaHDSKFAd+6+YFB9lN6r36tBG31+3wrC4LjQ/0JcDZqpu4ixY6vlXos6L1cAiJu +Qflk01DPkG9thC1H8DqU0N3M/Ar7e8FqVJgqPmT6cV1zo/3vS3UbkZ9xeMhHOpGf +8rNbm2sr6jMQcFvFNm9Z6DIKWJJ/GSSSJgtx5UnfJb96TkB58m9bvSacaN8fHbNh +tRNehScZHAE/jYuZ2UP9GfvwNRG7ofnSbnS5FYXdfyBDxP/Dlz0nRoAv/sKyR7Wg +0qHFOcQ47dG46TBjek1tV5i7kkrmtQ5qEyvqSAVTscp+DNZ/d1A= +=A89k -----END PGP SIGNATURE----- diff --git a/metadata/news/Manifest.files.gz b/metadata/news/Manifest.files.gz Binary files differindex 51b502b0311c..6c5b959ec221 100644 --- a/metadata/news/Manifest.files.gz +++ b/metadata/news/Manifest.files.gz diff --git a/metadata/news/timestamp.chk b/metadata/news/timestamp.chk index ff4d5de782ab..0c96a25a890c 100644 --- a/metadata/news/timestamp.chk +++ b/metadata/news/timestamp.chk @@ -1 +1 @@ -Tue, 14 May 2024 22:10:32 +0000 +Tue, 21 May 2024 21:36:07 +0000 diff --git a/metadata/news/timestamp.commit b/metadata/news/timestamp.commit index a5352396deeb..2f62e7032ecc 100644 --- a/metadata/news/timestamp.commit +++ b/metadata/news/timestamp.commit @@ -1 +1 @@ -54a41c87307533fe370c99eb5295f5a638fe8d42 1715226611 2024-05-09T03:50:11Z +3557467d15bb3e848c1a73e70dfaa786a2de29d9 1716131556 2024-05-19T15:12:36Z |