EC2: Set entropy_efi_seed_size to 64

This dramatically improves boot speeds on Graviton 2 instances.

MFC after:	1 week
Sponsored by:	Amazon
Differential Revision:	https://reviews.freebsd.org/D46636

(cherry picked from commit 714a6d436819d446e01d1e4741fbe1089a23fe57)
This commit is contained in:
Colin Percival 2024-09-18 04:02:15 -07:00
parent f470543a65
commit 82ade8ed7e

View file

@ -38,6 +38,10 @@ ec2_common() {
echo 'autoboot_delay="-1"' >> ${DESTDIR}/boot/loader.conf
echo 'beastie_disable="YES"' >> ${DESTDIR}/boot/loader.conf
# The EFI RNG on Graviton 2 is particularly slow if we ask for the
# default 2048 bytes of entropy; ask for 64 bytes instead.
echo 'entropy_efi_seed_size="64"' >> ${DESTDIR}/boot/loader.conf
# Tell gptboot not to wait 3 seconds for a keypress which will
# never arrive.
printf -- "-n\n" > ${DESTDIR}/boot.config