CPU microcode is not always prepended first in the initrd file #22674
Labels
6.topic: kernel
The Linux kernel
6.topic: nixos
Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
9.needs: port to stable
A PR needs a backport to the stable release.
Milestone
Issue description
When enabling "hardware.cpu.intel.updateMicrocode = true;", the intel-ucode.img file is not always prepended first in the initrd file. If the "intel-ucode.img" file is not prepended first the system will crash at boot.
Steps to reproduce
Use the following two settings in the "configuration-hardware.nix" file (order doesn't matter):
boot.initrd.prepend = [ "/boot/crypto_keyfile.cpio.gz" ];
hardware.cpu.intel.updateMicrocode = true;
The order can be confirmed using the following command at the prompt:
nixos-option boot.initrd.prepend
Workaround
Place the following setting in the main "configuration.nix" file instead:
boot.initrd.prepend = [ "/boot/crypto_keyfile.cpio.gz" ];
Technical details
The text was updated successfully, but these errors were encountered: