From 20f01aa76c8723300179f1ee94d43d9d8f2452da Mon Sep 17 00:00:00 2001 From: Arian van Putten Date: Thu, 23 May 2024 11:03:38 +0200 Subject: [PATCH] nixos/amazon-image: do not force-load xen-blkfront kernel module Most AWS instances use Nitro Hypervisor these days which expose EBS volumes as nvme disks. And even on previous-generation instances that still use Xen (like T2) the xen-blkfront module will be loaded automatically due to the presence of a modalias. This fixes #46881 --- nixos/modules/virtualisation/amazon-image.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/nixos/modules/virtualisation/amazon-image.nix b/nixos/modules/virtualisation/amazon-image.nix index 77730178422c..a9ba24b3966e 100644 --- a/nixos/modules/virtualisation/amazon-image.nix +++ b/nixos/modules/virtualisation/amazon-image.nix @@ -49,7 +49,6 @@ in boot.extraModulePackages = [ config.boot.kernelPackages.ena ]; - boot.initrd.kernelModules = [ "xen-blkfront" ]; boot.initrd.availableKernelModules = [ "nvme" ]; boot.kernelParams = [ "console=ttyS0,115200n8" "random.trust_cpu=on" ];