aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2021-09-16 16:22:42 +0000
committerColin Percival <cperciva@FreeBSD.org>2021-09-25 16:20:58 +0000
commit65f22ccf824710cb633da9424961ee02fecd7591 (patch)
treeabf5d019fd79c15f90938eaef278565eba070b39
parentc6bdb5d46872386ce4eeab8c47937c73ab7be92e (diff)
downloadsrc-65f22ccf8247.tar.gz
src-65f22ccf8247.zip
EC2: Default to UEFI booting
This reduces the FreeBSD boot time by approximately 5 seconds, roughly equally divided betwenn two factors: * Disk I/O is faster in the EFI loader since it can perform larger I/Os. (The BIOS loader is limited due to the use of bounce buffers in sub-1M memory.) * The EFI console is much faster than the VGA console. Note however that not all EC2 instance types support UEFI; as a general rule the newer instances (based on Amazon's "Nitro" platform) support UEFI but the older instances (based on Xen) do not. Discussed with: re@, freebsd-cloud@, Amazon Relnotes: yes Sponsored by: https://www.patreon.com/cperciva (cherry picked from commit b43d7aa09b3c91fb6b652306db2ac13e1459c497)
-rw-r--r--release/Makefile.ec24
1 files changed, 0 insertions, 4 deletions
diff --git a/release/Makefile.ec2 b/release/Makefile.ec2
index c82620ea5cd6..3a3f6232333d 100644
--- a/release/Makefile.ec2
+++ b/release/Makefile.ec2
@@ -25,12 +25,8 @@ SSMOPTS= --ssm-name ${SSMPREFIX}/${TARGET_ARCH:S/aarch64/arm64/}/base/ufs/${REVI
EC2ARCH= --${TARGET_ARCH:S/aarch64/arm64/}
.endif
.if !defined(AMIBOOTMETHOD)
-.if ${TARGET_ARCH} == "amd64"
-AMIBOOTMETHOD= BIOS
-.else
AMIBOOTMETHOD= UEFI
.endif
-.endif
.if ${AMIBOOTMETHOD} == "UEFI" && ${TARGET_ARCH} == "amd64"
BOOTMODEOPT= --uefi
.endif