From 2c9845db4bc00221bc3c2343a020208f7f532166 Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Thu, 31 Oct 2024 21:36:39 -0400 Subject: many fixes --- scripts/os/freebsd/80-microcode | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'scripts/os/freebsd/80-microcode') 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 -- cgit v1.2.3