aboutsummaryrefslogtreecommitdiff
path: root/stand
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2024-09-18 11:02:01 +0000
committerColin Percival <cperciva@FreeBSD.org>2024-09-22 07:35:47 +0000
commitf4a69a933cd645e384b337db5ef2ccf41a1ddd5b (patch)
tree3e790a2c5f28829e28b450c1dddb0ae82a1acf76 /stand
parentb58fe4eb29fbd3236df0f7fdfad4393d2536dbb5 (diff)
Diffstat (limited to 'stand')
-rw-r--r--stand/defaults/loader.conf8
-rw-r--r--stand/lua/core.lua3
2 files changed, 8 insertions, 3 deletions
diff --git a/stand/defaults/loader.conf b/stand/defaults/loader.conf
index a5d27b96b6ba..c3de7cdfb74b 100644
--- a/stand/defaults/loader.conf
+++ b/stand/defaults/loader.conf
@@ -48,8 +48,12 @@ entropy_cache_type="boot_entropy_cache" # Required for the kernel to find
# the boot-time entropy cache. This
# must not change value even if the
# _name above does change!
-entropy_efi_seed="YES" # Set this to NO to disable loading
- # entropy from the UEFI hardware random number generator API
+entropy_efi_seed="YES" # Set this to NO to disable loading
+ # entropy from the UEFI hardware
+ # random number generator API
+entropy_efi_seed_size="2048" # Set this to a different value to
+ # change the amount of entropy
+ # requested from EFI
### RAM Blacklist configuration ############################
ram_blacklist_load="NO" # Set this to YES to load a file
diff --git a/stand/lua/core.lua b/stand/lua/core.lua
index 7b7560ddc820..72b19462ae5c 100644
--- a/stand/lua/core.lua
+++ b/stand/lua/core.lua
@@ -369,7 +369,8 @@ end
function core.loadEntropy()
if core.isUEFIBoot() then
if (loader.getenv("entropy_efi_seed") or "no"):lower() == "yes" then
- loader.perform("efi-seed-entropy")
+ local seedsize = loader.getenv("entropy_efi_seed_size") or "2048"
+ loader.perform("efi-seed-entropy " .. seedsize)
end
end
end