diff options
author | Timothy DeHerrera <tim.deh@pm.me> | 2021-11-10 14:12:01 -0700 |
---|---|---|
committer | Timothy DeHerrera <tim.deh@pm.me> | 2021-11-10 17:38:58 -0700 |
commit | ed4170733c141b610484fc452f1d0a0302213abd (patch) | |
tree | f515898d3cac43618fdec86e8385cac68486278e /nixos/maintainers/scripts/ec2/create-amis.sh | |
parent | 523850d2466cb6c3d61ad1f3bc0deff55db8adec (diff) | |
download | nixpkgs-ed4170733c141b610484fc452f1d0a0302213abd.tar nixpkgs-ed4170733c141b610484fc452f1d0a0302213abd.tar.gz nixpkgs-ed4170733c141b610484fc452f1d0a0302213abd.tar.bz2 nixpkgs-ed4170733c141b610484fc452f1d0a0302213abd.tar.lz nixpkgs-ed4170733c141b610484fc452f1d0a0302213abd.tar.xz nixpkgs-ed4170733c141b610484fc452f1d0a0302213abd.tar.zst nixpkgs-ed4170733c141b610484fc452f1d0a0302213abd.zip |
amis: enable setting ami boot mode on registration
This is important since legacy bios mode is still the default for Intel and AMD based instances on AWS. That is, even if your image is setup to use UEFI on the OS level, the AMI will still use BIOS unless the boot mode is explicitly set during registration.
Diffstat (limited to 'nixos/maintainers/scripts/ec2/create-amis.sh')
-rwxr-xr-x | nixos/maintainers/scripts/ec2/create-amis.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/maintainers/scripts/ec2/create-amis.sh b/nixos/maintainers/scripts/ec2/create-amis.sh index 35589458739..1df27e2db55 100755 --- a/nixos/maintainers/scripts/ec2/create-amis.sh +++ b/nixos/maintainers/scripts/ec2/create-amis.sh @@ -275,6 +275,7 @@ upload_image() { --region "$region" \ --architecture $amazon_arch \ --block-device-mappings "${block_device_mappings[@]}" \ + --boot-mode $(read_image_info .boot_mode) \ "${extra_flags[@]}" \ | jq -r '.ImageId' ) |