fix: Check SSE4.2

This commit is contained in:
Kroese 2023-12-16 15:57:30 +01:00 committed by GitHub
parent 2e0107e46f
commit 932c23afba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,10 +29,11 @@ if [[ "$ARCH" == "amd64" && "$KVM" != [Nn]* ]]; then
KVM_OPTS=",accel=kvm -enable-kvm" KVM_OPTS=",accel=kvm -enable-kvm"
fi fi
if [[ "$CPU_MODEL" != *"$CPU_FEATURES"* ]]; then if [ -n "$KVM_OPTS" ]; then
if ! grep -qE '^flags.* (sse4_2)' /proc/cpuinfo; then if ! grep -qE '^flags.* (sse4_2)' /proc/cpuinfo; then
info "Your CPU does not have the SSE4.2 instruction set that DSM needs, it will be emulated.." error "Your host CPU does not has the SSE4.2 instruction set that Virtual DSM requires to boot."
CPU_MODEL="host,$CPU_FEATURES" error "Disable KVM by setting KVM=N to emulate a compatible CPU, at the cost of performance."
[[ "$DEBUG" != [Yy1]* ]] && exit 89
fi fi
fi fi