mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 12:15:34 +03:00
microcode updates: prepend first in initrd
Prevents crashing the kernel on boot if other blobs are prepended before the microkernel update image. Fixes #22674.
This commit is contained in:
parent
2edb8ffa14
commit
bccac381b2
2 changed files with 4 additions and 2 deletions
|
@ -22,7 +22,8 @@ with lib;
|
|||
###### implementation
|
||||
|
||||
config = mkIf config.hardware.cpu.amd.updateMicrocode {
|
||||
boot.initrd.prepend = [ "${pkgs.microcodeAmd}/amd-ucode.img" ];
|
||||
# Microcode updates must be the first item prepended in the initrd
|
||||
boot.initrd.prepend = mkOrder 1 [ "${pkgs.microcodeAmd}/amd-ucode.img" ];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue