File tree 2 files changed +4
-2
lines changed
nixos/modules/hardware/cpu
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ with lib;
22
22
###### implementation
23
23
24
24
config = mkIf config . hardware . cpu . amd . updateMicrocode {
25
- boot . initrd . prepend = [ "${ pkgs . microcodeAmd } /amd-ucode.img" ] ;
25
+ # Microcode updates must be the first item prepended in the initrd
26
+ boot . initrd . prepend = mkOrder 1 [ "${ pkgs . microcodeAmd } /amd-ucode.img" ] ;
26
27
} ;
27
28
28
29
}
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ with lib;
22
22
###### implementation
23
23
24
24
config = mkIf config . hardware . cpu . intel . updateMicrocode {
25
- boot . initrd . prepend = [ "${ pkgs . microcodeIntel } /intel-ucode.img" ] ;
25
+ # Microcode updates must be the first item prepended in the initrd
26
+ boot . initrd . prepend = mkOrder 1 [ "${ pkgs . microcodeIntel } /intel-ucode.img" ] ;
26
27
} ;
27
28
28
29
}
You can’t perform that action at this time.
0 commit comments