Luna/tools/fast-run.sh
apio c24a261233
All checks were successful
continuous-integration/drone/push Build is passing
tools: Do not use KVM when it's not supported
2023-07-21 14:17:14 +02:00

16 lines
230 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source $(dirname $0)/env.sh
cd $LUNA_ROOT
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 $@