Fixes: #10715
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
mkdir bin
# qemu-iotests expects a binary called just 'qemu' to be available
-ln -s `which qemu-system-x86_64` bin/qemu
+if [ -x '/usr/bin/qemu-system-x86_64' ]
+then
+ QEMU='/usr/bin/qemu-system-x86_64'
+else
+ QEMU='/usr/libexec/qemu-kvm'
+fi
+ln -s $QEMU bin/qemu
# this is normally generated by configure, but has nothing but a python
# binary definition, which we don't care about. for some reason it is