From b4d3a0af8778c779e0b26f1b9197c0f1451d9696 Mon Sep 17 00:00:00 2001 From: "Pradipta Kr. Banerjee" Date: Mon, 22 Jun 2020 06:35:03 +0000 Subject: [PATCH] qemu: Fix Qemu binary path for Power across distros The default ppc64le Qemu binary path was specific for Ubuntu. This patch fixes the default binary path for both Fedora and Ubuntu Fixes: #2738 Signed-off-by: bpradipt@in.ibm.com --- src/runtime/arch/ppc64le-options.mk | 2 +- src/runtime/virtcontainers/qemu_ppc64le.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/arch/ppc64le-options.mk b/src/runtime/arch/ppc64le-options.mk index a309ca51db..821e4f6835 100644 --- a/src/runtime/arch/ppc64le-options.mk +++ b/src/runtime/arch/ppc64le-options.mk @@ -9,4 +9,4 @@ MACHINETYPE := pseries KERNELPARAMS := MACHINEACCELERATORS := KERNELTYPE := uncompressed #This architecture must use an uncompressed kernel. -QEMUCMD := qemu-system-ppc64le +QEMUCMD := qemu-system-ppc64 diff --git a/src/runtime/virtcontainers/qemu_ppc64le.go b/src/runtime/virtcontainers/qemu_ppc64le.go index 948642d52d..4f15ef8592 100644 --- a/src/runtime/virtcontainers/qemu_ppc64le.go +++ b/src/runtime/virtcontainers/qemu_ppc64le.go @@ -18,7 +18,7 @@ type qemuPPC64le struct { qemuArchBase } -const defaultQemuPath = "/usr/bin/qemu-system-ppc64le" +const defaultQemuPath = "/usr/bin/qemu-system-ppc64" const defaultQemuMachineType = QemuPseries