mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
This creates a AMD microcode image when installing the kernel and when installkernel/kernel-install is configured to use an initramfs generator other then dracut. Dracut bundles the microcode in the image it generates, many other initramfs generators do not and we want these users to also get the latest CPU microcode. installkernel-gentoo.git has recently gained support for handling these ucode images and passing them on to bootloaders and UKI generators. Note that this should be here and not in installkernel-gentoo.git because we only want to install this when the initramfs flag is enabled to avoid the situation where users who don't want an ucode.img get one anyway. To avoid code-duplication we add and install a little helper script that we can call both from the ebuild and from the hooks. Co-authored-by: Zen <z@pyl.onl> Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/37320 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
2.8 KiB
2.8 KiB