From: Richard W.M. Jones Date: Mon, 31 Jul 2017 14:19:52 +0000 (+0100) Subject: ppc64: Test ${root}/proc/device-tree/hypervisor instead of real file. X-Git-Tag: v1.17~1 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=39ca395b05519ffbfc7b8971a7bd647a9c68c8b1;p=virt-what.git ppc64: Test ${root}/proc/device-tree/hypervisor instead of real file. Fixes commit 50153230d19401fe47fcfd19d7ca0a2623c1ff09. --- 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