HomeFreeBSD

EC2: Allow AMI boot mode to be specified

Description

EC2: Allow AMI boot mode to be specified

The default boot method for amd64 AMIs is BIOS, but at AMI creation
time a flag can be set to specify that UEFI should be used instead.
This commit adds a variable AMIBOOTMETHOD which, if set to "UEFI",
causes the appropriate flag to be set during AMI creation.

The only boot method supported by EC2 for arm64 is UEFI.

The names of AMIs are also amended to include the boot method; they
now look like "FreeBSD 14.0-CURRENT-amd64-20210915 UEFI".

Sponsored by: https://www.patreon.com/cperciva

(cherry picked from commit 0aa2a94ea6359fb2587af81841fbf8eb30ab36b0)

Details

Provenance
cpercivaAuthored on Sep 16 2021, 2:15 AM
Parents
rGa8446d4124d0: diff3: document and test -T
Branches
Unknown
Tags
Unknown