EC2: Default to "uefi-preferred" boot mode
In EC2, UEFI boots faster than BIOS, but not all amd64 instance types support UEFI. AMIs need to have their boot mode designated, which created a dilemma: Faster boots, or wider compatibility? The recently added "uefi-preferred" option solves this: AMIs can be marked to use UEFI where it's available, but fall back to BIOS on instance types which do not support UEFI. This uses bsdec2-image-upload 1.4.6, which recently landed in the ports tree. PR: 265697 Reviewed by: delphij, imp MFC after: 1 week Sponsored by: https://www.patreon.com/cperciva Differential Revision: https://reviews.freebsd.org/D40470
This commit is contained in:
parent
104e8215cc
commit
bcf9147144
|
@ -25,11 +25,14 @@ SSMOPTS= --ssm-name ${SSMPREFIX}/${TARGET_ARCH:S/aarch64/arm64/}/base/ufs/${REVI
|
||||||
EC2ARCH= --${TARGET_ARCH:S/aarch64/arm64/}
|
EC2ARCH= --${TARGET_ARCH:S/aarch64/arm64/}
|
||||||
.endif
|
.endif
|
||||||
.if !defined(AMIBOOTMETHOD)
|
.if !defined(AMIBOOTMETHOD)
|
||||||
AMIBOOTMETHOD= UEFI
|
AMIBOOTMETHOD= UEFI-PREFERRED
|
||||||
.endif
|
.endif
|
||||||
.if ${AMIBOOTMETHOD} == "UEFI" && ${TARGET_ARCH} == "amd64"
|
.if ${AMIBOOTMETHOD} == "UEFI" && ${TARGET_ARCH} == "amd64"
|
||||||
BOOTMODEOPT= --uefi
|
BOOTMODEOPT= --uefi
|
||||||
.endif
|
.endif
|
||||||
|
.if ${AMIBOOTMETHOD} == "UEFI-PREFERRED" && ${TARGET_ARCH} == "amd64"
|
||||||
|
BOOTMODEOPT= --uefi-preferred
|
||||||
|
.endif
|
||||||
|
|
||||||
CLEANFILES+= ec2ami
|
CLEANFILES+= ec2ami
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue