Skip to content

Commit

Permalink
amazon-image: random.trust_cpu=on to cut 10s from boot
Browse files Browse the repository at this point in the history
Ubuntu and other distros already have this set via kernel config.
  • Loading branch information
grahamc committed Oct 30, 2020
1 parent b52da4e commit c851030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/virtualisation/amazon-image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ in
];
boot.initrd.kernelModules = [ "xen-blkfront" "xen-netfront" ];
boot.initrd.availableKernelModules = [ "ixgbevf" "ena" "nvme" ];
boot.kernelParams = mkIf cfg.hvm [ "console=ttyS0" ];
boot.kernelParams = mkIf cfg.hvm [ "console=ttyS0" "random.trust_cpu=on" ];

# Prevent the nouveau kernel module from being loaded, as it
# interferes with the nvidia/nvidia-uvm modules needed for CUDA.
Expand Down

0 comments on commit c851030

Please sign in to comment.