feat: add host and VM architecture; host is hard coded to x86_64
This commit is contained in:
parent
cefa2556f3
commit
83c16dad2c
6
quickemu
6
quickemu
|
@ -1814,10 +1814,12 @@ readonly DISK_MIN_SIZE=$((197632 * 8))
|
||||||
readonly VERSION="4.9.5"
|
readonly VERSION="4.9.5"
|
||||||
|
|
||||||
# TODO: Make this run the native architecture binary
|
# TODO: Make this run the native architecture binary
|
||||||
QEMU=$(command -v qemu-system-x86_64)
|
ARCH_VM="x86_64"
|
||||||
|
ARCH_HOST=$(uname -m)
|
||||||
|
QEMU=$(command -v qemu-system-${ARCH_VM})
|
||||||
QEMU_IMG=$(command -v qemu-img)
|
QEMU_IMG=$(command -v qemu-img)
|
||||||
if [ ! -x "${QEMU}" ] || [ ! -x "${QEMU_IMG}" ]; then
|
if [ ! -x "${QEMU}" ] || [ ! -x "${QEMU_IMG}" ]; then
|
||||||
echo "ERROR! QEMU not found. Please make sure 'qemu-system-x86_64' and 'qemu-img' are installed."
|
echo "ERROR! QEMU not found. Please make sure 'qemu-system-${ARCH_VM}' and 'qemu-img' are installed."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue