ppc64le: test-tool: Use correct qemu-system-ppc64 binary when creating qemu wrapper.

This commit is contained in:
Menanteau Guy
2014-10-24 16:51:02 +01:00
committed by Richard W.M. Jones
parent a61d190ed3
commit 5018e00129

View File

@@ -388,7 +388,11 @@ set_qemu (guestfs_h *g, const char *path, int use_wrapper)
"#!/bin/sh -\n"
"host_cpu=%s\n"
"qemudir='%s'\n"
"if [ $host_cpu != \"ppc64le\" ]; then \n"
"qemu=\"$qemudir/$host_cpu-softmmu/qemu-system-$host_cpu\"\n"
"else"
"qemu=\"$qemudir/$host_cpu-softmmu/qemu-system-ppc64\"\n"
"fi"
"exec \"$qemu\" -L \"$qemudir/pc-bios\" \"$@\"\n",
host_cpu, path);
fclose (fp);