Page MenuHomeFreeBSD

D46632.diff
No OneTemporary

D46632.diff

diff --git a/stand/defaults/loader.conf b/stand/defaults/loader.conf
--- a/stand/defaults/loader.conf
+++ b/stand/defaults/loader.conf
@@ -48,8 +48,12 @@
# 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
--- a/stand/lua/core.lua
+++ b/stand/lua/core.lua
@@ -369,7 +369,8 @@
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

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 17, 12:05 PM (20 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15838486
Default Alt Text
D46632.diff (1 KB)

Event Timeline