tools: Do not use KVM when it's not supported
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-07-21 14:17:14 +02:00
parent edeb420d0d
commit c24a261233
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -5,4 +5,11 @@ source $(dirname $0)/env.sh
cd $LUNA_ROOT
qemu-system-$LUNA_ARCH -cdrom Luna.iso -smp 1 -m 256M -serial stdio -enable-kvm $@
if [ -c /dev/kvm ]
then
EXTRA_FLAGS="-enable-kvm"
else
EXTRA_FLAGS=""
fi
qemu-system-$LUNA_ARCH -cdrom Luna.iso -smp 1 -m 256M -serial stdio $EXTRA_FLAGS $@