mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 06:12:01 +01:00
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. X-MFC: TBD based on tradeoff between performance and compatibility Relnotes: yes Sponsored by: https://www.patreon.com/cperciva
This commit is contained in:
parent
0aa2a94ea6
commit
b43d7aa09b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user