mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
smt: Fix check to detect if a system is running virtually
/sys/hypervisor exists when a host has loaded the kvm modules. Fixes: #12472 Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -21,7 +21,7 @@ case "${1}" in
|
||||
fi 2>/dev/null
|
||||
|
||||
# Do not disable SMT inside virtual machines
|
||||
if [ -d "/sys/hypervisor" ]; then
|
||||
if running_on_hypervisor; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user