aboutsummaryrefslogtreecommitdiff
path: root/scripts/os/freebsd/80-microcode
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-10-31 21:36:39 -0400
committerCullum Smith <cullum@sacredheartsc.com>2024-10-31 21:36:39 -0400
commit2c9845db4bc00221bc3c2343a020208f7f532166 (patch)
tree843bc24a1bbf2cad33c4bdc8a17c3d0d838fceb4 /scripts/os/freebsd/80-microcode
parent7eb111136453d0e8d8451d7dd85ba9892318f294 (diff)
downloadinfrastructure-2c9845db4bc00221bc3c2343a020208f7f532166.tar.gz
many fixes
Diffstat (limited to 'scripts/os/freebsd/80-microcode')
-rw-r--r--scripts/os/freebsd/80-microcode12
1 files changed, 8 insertions, 4 deletions
diff --git a/scripts/os/freebsd/80-microcode b/scripts/os/freebsd/80-microcode
index f9e213e..0d2a910 100644
--- a/scripts/os/freebsd/80-microcode
+++ b/scripts/os/freebsd/80-microcode
@@ -7,8 +7,12 @@ if [ "$BOXCONF_VIRTUALIZATION_TYPE" != none ]; then
return
fi
-pkg install -y cpu-microcode
+if [ "${enable_microcode_updates:-}" = false ]; then
+ set_loader_conf cpu_microcode_load=NO
+else
+ pkg install -y cpu-microcode
-set_loader_conf \
- cpu_microcode_load=YES \
- cpu_microcode_name="/boot/firmware/${microcode_name}"
+ set_loader_conf \
+ cpu_microcode_load=YES \
+ cpu_microcode_name="/boot/firmware/${microcode_name}"
+fi