KVM detection

This commit is contained in:
Kroese 2023-04-27 11:49:14 +02:00 committed by GitHub
parent 91b808db26
commit 11e3355e60

View File

@ -53,7 +53,7 @@ else
[ -e /dev/kvm ] && KVM_ERR="(no write access)" || KVM_ERR="(device file missing)" [ -e /dev/kvm ] && KVM_ERR="(no write access)" || KVM_ERR="(device file missing)"
fi fi
if [ -z "${KVM_ERR}" ]; then if [ ! -z "${KVM_ERR}" ]; then
echo "Error: KVM acceleration not detected ${KVM_ERR}, please enable it." echo "Error: KVM acceleration not detected ${KVM_ERR}, please enable it."
[ "$DEBUG" != "Y" ] && exit 88 [ "$DEBUG" != "Y" ] && exit 88
fi fi