mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
test-tool: On i386, upstream qemu program is now called 'qemu-system-i386'.
For a while, the upstream qemu i386 emulator has been called 'qemu-system-i386' (instead of just 'qemu'). Fix test-tool so it calls the right program.
This commit is contained in:
@@ -378,19 +378,11 @@ set_qemu (guestfs_h *g, const char *path, int use_wrapper)
|
||||
fp = fdopen (fd, "w");
|
||||
fprintf (fp,
|
||||
"#!/bin/sh -\n"
|
||||
"host_cpu=%s\n"
|
||||
"qemudir='%s'\n"
|
||||
"\"$qemudir\"/",
|
||||
path);
|
||||
|
||||
/* Select the right qemu binary for the wrapper script. */
|
||||
#ifdef __i386__
|
||||
fprintf (fp, "i386-softmmu/qemu");
|
||||
#else
|
||||
fprintf (fp, host_cpu "-softmmu/qemu-system-" host_cpu);
|
||||
#endif
|
||||
|
||||
fprintf (fp, " -L \"$qemudir\"/pc-bios \"$@\"\n");
|
||||
|
||||
"qemu=\"$qemudir/$host_cpu-softmmu/qemu-system-$host_cpu\"\n"
|
||||
"\"$qemu\" -L \"$qemudir/pc-bios\" \"$@\"\n",
|
||||
host_cpu, path);
|
||||
fclose (fp);
|
||||
|
||||
guestfs_set_qemu (g, qemuwrapper);
|
||||
|
||||
Reference in New Issue
Block a user