From f1c0d5548c2bf12f2c064e5014e2fd2a7e080dfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Wed, 8 Apr 2026 20:53:35 +0200 Subject: [PATCH] chg: remove --no-intel-db, it's now always used when available --- src/libs/002_core_globals.sh | 2 -- src/libs/230_util_optparse.sh | 3 --- src/libs/380_hw_microcode.sh | 5 +---- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/libs/002_core_globals.sh b/src/libs/002_core_globals.sh index 7380634..8b39f21 100644 --- a/src/libs/002_core_globals.sh +++ b/src/libs/002_core_globals.sh @@ -60,7 +60,6 @@ show_usage() { --no-runtime skip running-kernel checks (/sys, /proc, dmesg), still inspect local CPU hardware --no-hw skip CPU information and running-kernel checks (implies --no-runtime) --vmm [auto,yes,no] override the detection of the presence of a hypervisor, default: auto - --no-intel-db don't use the builtin Intel DB of affected processors --allow-msr-write allow probing for write-only MSRs, this might produce kernel logs or be blocked by your system --cpu [#,all] interact with CPUID and MSR of CPU core number #, or all (default: CPU core 0) --update-fwdb update our local copy of the CPU microcodes versions database (using the awesome @@ -137,7 +136,6 @@ opt_explain=0 opt_paranoid=0 opt_extra=0 opt_mock=0 -opt_intel_db=1 g_critical=0 g_unknown=0 diff --git a/src/libs/230_util_optparse.sh b/src/libs/230_util_optparse.sh index 254ee3b..13d526e 100644 --- a/src/libs/230_util_optparse.sh +++ b/src/libs/230_util_optparse.sh @@ -84,9 +84,6 @@ while [ -n "${1:-}" ]; do elif [ "$1" = "--allow-msr-write" ]; then opt_allow_msr_write=1 shift - elif [ "$1" = "--no-intel-db" ]; then - opt_intel_db=0 - shift elif [ "$1" = "--cpu" ]; then opt_cpu=$2 if [ "$opt_cpu" != all ]; then diff --git a/src/libs/380_hw_microcode.sh b/src/libs/380_hw_microcode.sh index a486f1a..01bb07e 100644 --- a/src/libs/380_hw_microcode.sh +++ b/src/libs/380_hw_microcode.sh @@ -26,10 +26,7 @@ read_mcedb() { # Read the Intel official affected CPUs database (builtin) to stdout read_inteldb() { - if [ "$opt_intel_db" = 1 ]; then - awk '/^# %%% ENDOFINTELDB/ { exit } { if (DELIM==1) { print $2 } } /^# %%% INTELDB/ { DELIM=1 }' "$0" - fi - # otherwise don't output nothing, it'll be as if the database is empty + awk '/^# %%% ENDOFINTELDB/ { exit } { if (DELIM==1) { print $2 } } /^# %%% INTELDB/ { DELIM=1 }' "$0" } # Check whether the CPU is running the latest known microcode version