mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-21 07:15:49 +00:00
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
This commit is contained in:
parent
c8ebbd28aa
commit
714a6d4368
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user