From 39ca395b05519ffbfc7b8971a7bd647a9c68c8b1 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 31 Jul 2017 15:19:52 +0100 Subject: [PATCH] ppc64: Test ${root}/proc/device-tree/hypervisor instead of real file. Fixes commit 50153230d19401fe47fcfd19d7ca0a2623c1ff09. --- virt-what.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt-what.in b/virt-what.in index f525a89..8c27b11 100644 --- a/virt-what.in +++ b/virt-what.in @@ -298,7 +298,7 @@ if ! "$skip_qemu_kvm"; then echo qemu skip_lkvm=true fi - elif [ -d /proc/device-tree/hypervisor ] && + elif [ -d ${root}/proc/device-tree/hypervisor ] && grep -q "linux,kvm" /proc/device-tree/hypervisor/compatible; then # We are running as a spapr KVM guest on ppc64 echo kvm -- 1.8.3.1