Skip to content

Commit

Permalink
Amazon image: Add NVMe support to the initrd
Browse files Browse the repository at this point in the history
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...

(cherry picked from commit 54da9cc)
  • Loading branch information
edolstra committed Nov 9, 2017
1 parent 2d1d381 commit 0c5a587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/virtualisation/amazon-image.nix
Expand Up @@ -33,7 +33,7 @@ let cfg = config.ec2; in
config.boot.kernelPackages.ena
];
boot.initrd.kernelModules = [ "xen-blkfront" "xen-netfront" ];
boot.initrd.availableKernelModules = [ "ixgbevf" "ena" ];
boot.initrd.availableKernelModules = [ "ixgbevf" "ena" "nvme" ];
boot.kernelParams = mkIf cfg.hvm [ "console=ttyS0" ];

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

0 comments on commit 0c5a587

Please sign in to comment.