Skip to content

Commit 54da9cc

Browse files
committedNov 9, 2017
Amazon image: Add NVMe support to the initrd
This is required by the new c5.* instance types. Note that this changes disk names from /dev/xvd* to /dev/nvme0n*. Amazon Linux has a udev rule that calls a Python script named "ec2nvme-nsid" to create compatibility symlinks. We could use that, but it would mean adding Python to the AMI closure...
1 parent 67ba83a commit 54da9cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎nixos/modules/virtualisation/amazon-image.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ let cfg = config.ec2; in
3333
config.boot.kernelPackages.ena
3434
];
3535
boot.initrd.kernelModules = [ "xen-blkfront" "xen-netfront" ];
36-
boot.initrd.availableKernelModules = [ "ixgbevf" "ena" ];
36+
boot.initrd.availableKernelModules = [ "ixgbevf" "ena" "nvme" ];
3737
boot.kernelParams = mkIf cfg.hvm [ "console=ttyS0" ];
3838

3939
# Prevent the nouveau kernel module from being loaded, as it

0 commit comments

Comments
 (0)