mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05: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 (cherry picked from commit 714a6d436819d446e01d1e4741fbe1089a23fe57)
This commit is contained in:
parent
f470543a65
commit
82ade8ed7e
1 changed files with 4 additions and 0 deletions
|
|
@ -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 a new issue