tools: Do not use KVM when it's not supported
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
edeb420d0d
commit
c24a261233
@ -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 $@
|
||||
|
Loading…
Reference in New Issue
Block a user