git: 82ade8ed7e70 - stable/14 - EC2: Set entropy_efi_seed_size to 64

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Sun, 29 Sep 2024 15:25:19 UTC
The branch stable/14 has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=82ade8ed7e70ad99aa5a35b6947de06a2efe3257

commit 82ade8ed7e70ad99aa5a35b6947de06a2efe3257
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2024-09-18 11:02:15 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2024-09-29 15:24:52 +0000

    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)
---
 release/tools/ec2.conf | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/release/tools/ec2.conf b/release/tools/ec2.conf
index 2cca5fa713af..522aaa400520 100644
--- a/release/tools/ec2.conf
+++ b/release/tools/ec2.conf
@@ -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