aboutsummaryrefslogtreecommitdiff
path: root/scripts/os/freebsd/80-microcode
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/os/freebsd/80-microcode')
-rw-r--r--scripts/os/freebsd/80-microcode14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/os/freebsd/80-microcode b/scripts/os/freebsd/80-microcode
new file mode 100644
index 0000000..f9e213e
--- /dev/null
+++ b/scripts/os/freebsd/80-microcode
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+: ${microcode_name:='intel-ucode.bin'}
+
+# Only run this file on baremetal hosts.
+if [ "$BOXCONF_VIRTUALIZATION_TYPE" != none ]; then
+ return
+fi
+
+pkg install -y cpu-microcode
+
+set_loader_conf \
+ cpu_microcode_load=YES \
+ cpu_microcode_name="/boot/firmware/${microcode_name}"