nixos.amazonAmi: use legacy+gpt disk images to support partitions >2T

This commit is contained in:
Graham Christensen 2020-10-28 15:54:38 -04:00
parent d78aa080f5
commit d77ddf2a40
No known key found for this signature in database
GPG key ID: FE918C3A98C1030F

View file

@ -57,7 +57,7 @@ in {
inherit (cfg) contents format name; inherit (cfg) contents format name;
pkgs = import ../../../.. { inherit (pkgs) system; }; # ensure we use the regular qemu-kvm package pkgs = import ../../../.. { inherit (pkgs) system; }; # ensure we use the regular qemu-kvm package
partitionTableType = if config.ec2.efi then "efi" partitionTableType = if config.ec2.efi then "efi"
else if config.ec2.hvm then "legacy" else if config.ec2.hvm then "legacy+gpt"
else "none"; else "none";
diskSize = cfg.sizeMB; diskSize = cfg.sizeMB;
fsType = "ext4"; fsType = "ext4";