aboutsummaryrefslogtreecommitdiff
path: root/scripts/os
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-12-03 22:10:42 -0500
committerCullum Smith <cullum@sacredheartsc.com>2024-12-03 22:10:42 -0500
commite082a9745b0976709e34a9ac9db6fd3283029d4e (patch)
treeb312d1bf377c7fe6579f76f2bb150f9ee996195d /scripts/os
parent969c377ac6c01e8e3874a0b4822dc42a001c14cb (diff)
downloadinfrastructure-e082a9745b0976709e34a9ac9db6fd3283029d4e.tar.gz
updates for freebsd 14.2-RELEASE
Diffstat (limited to 'scripts/os')
-rw-r--r--scripts/os/freebsd/80-microcode13
1 files changed, 10 insertions, 3 deletions
diff --git a/scripts/os/freebsd/80-microcode b/scripts/os/freebsd/80-microcode
index 0d2a910..4dfebdf 100644
--- a/scripts/os/freebsd/80-microcode
+++ b/scripts/os/freebsd/80-microcode
@@ -9,10 +9,17 @@ fi
if [ "${enable_microcode_updates:-}" = false ]; then
set_loader_conf cpu_microcode_load=NO
+ sysrc -v microcode_update_enable=NO
else
pkg install -y cpu-microcode
- set_loader_conf \
- cpu_microcode_load=YES \
- cpu_microcode_name="/boot/firmware/${microcode_name}"
+ if [ "${microcode_after_boot:-}" = true ];
+ set_loader_conf cpu_microcode_load=NO
+ sysrc -v microcode_update_enable=YES
+ else
+ sysrc -v microcode_update_enable=NO
+ set_loader_conf \
+ cpu_microcode_load=YES \
+ cpu_microcode_name="/boot/firmware/${microcode_name}"
+ fi
fi