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

View File

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