Qemu version check is now major/minor version only

This commit is contained in:
Martin Wimpress 2021-09-25 13:41:37 +01:00
parent d88ae70aa8
commit 780735cce6
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -598,8 +598,8 @@ if [ ! -e "${QEMU}" ] && [ ! -e "${QEMU_IMG}" ]; then
exit 1
fi
QEMU_VER=$(${QEMU} -version | head -n1 | cut -d' ' -f4 | cut -d'(' -f1 | sed 's/\.//g')
if [ "${QEMU_VER}" -lt 600 ]; then
QEMU_VER=$(${QEMU} -version | head -n1 | cut -d' ' -f4 | cut -d'(' -f1 | sed 's/\.//g' | cut -c1-2)
if [ "${QEMU_VER}" -lt 60 ]; then
echo "ERROR! Qemu 6.0.0 or newer is required, detected $(${QEMU} -version | head -n1 | cut -d' ' -f4 | cut -d'(' -f1)."
exit 1
fi