ppc64: Test ${root}/proc/device-tree/hypervisor instead of real file.
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 31 Jul 2017 14:19:52 +0000 (15:19 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 31 Jul 2017 14:19:52 +0000 (15:19 +0100)
Fixes commit 50153230d19401fe47fcfd19d7ca0a2623c1ff09.

virt-what.in

index f525a89..8c27b11 100644 (file)
@@ -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