aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-08-24 08:17:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-08-24 08:18:33 +0200
commitbdbb9dc31be89f3741923d579d1e905736c4a9fe (patch)
treebca7837c99e74f49912fe6a354dc194e6d105a2a
parent44fbef9a8b5f337c39c67983f468a5d5529089e8 (diff)
Auto-detect host architecture in test-machine script
-rwxr-xr-xtest-machine3
1 files changed, 2 insertions, 1 deletions
diff --git a/test-machine b/test-machine
index c7e279a..cdd6001 100755
--- a/test-machine
+++ b/test-machine
@@ -21,7 +21,8 @@ function error () { info "$*"; exit 1; }
br=br0
mac="de:ad:be:ef:b8:da"
-kvm=(qemu-system-x86_64 -enable-kvm)
+arch="$(uname -m)"
+kvm=("qemu-system-$arch" -enable-kvm)
nic=virtio-net-pci
etap=