Check for both qemu-system-x86_64 and qemu-img

This commit is contained in:
Giorgio Gallo 2022-01-03 22:34:39 +01:00 committed by GitHub
parent 12fbf6b02f
commit 3bcf36f625
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1085,7 +1085,7 @@ fi
# TODO: Make this run the native architecture binary
QEMU=$(command -v qemu-system-x86_64)
QEMU_IMG=$(command -v qemu-img)
if [ ! -e "${QEMU}" ] && [ ! -e "${QEMU_IMG}" ]; then
if [ ! -e "${QEMU}" ] || [ ! -e "${QEMU_IMG}" ]; then
echo "ERROR! QEMU not found. Please make install qemu-system-x86_64 and qemu-img"
exit 1
fi