diff --git a/Meta/run.sh b/Meta/run.sh index b4d59855c4a..7c199c6eea6 100755 --- a/Meta/run.sh +++ b/Meta/run.sh @@ -43,6 +43,10 @@ SERENITY_RUN="${SERENITY_RUN:-$1}" fi } +SERENITY_QEMU_MIN_REQ_VERSION=5 +installed_major_version=$("$SERENITY_QEMU_BIN" -version | head -n 1 | grep -Po "(?<=QEMU emulator version )([1-9]\d*|0)") +[ "$installed_major_version" -lt "$SERENITY_QEMU_MIN_REQ_VERSION" ] && die "Required QEMU >= 5.0! Found $($SERENITY_QEMU_BIN -version | head -n 1)" + [ -z "$SERENITY_COMMON_QEMU_ARGS" ] && SERENITY_COMMON_QEMU_ARGS=" $SERENITY_EXTRA_QEMU_ARGS -s -m $SERENITY_RAM_SIZE