git.annexia.org
/
virt-what.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e25bd8
)
ppc64: Test ${root}/proc/device-tree/hypervisor instead of real file.
author
Richard W.M. Jones
<rjones@redhat.com>
Mon, 31 Jul 2017 14:19:52 +0000
(15:19 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Mon, 31 Jul 2017 14:19:52 +0000
(15:19 +0100)
Fixes commit
50153230d19401fe47fcfd19d7ca0a2623c1ff09
.
virt-what.in
patch
|
blob
|
history
diff --git
a/virt-what.in
b/virt-what.in
index
f525a89
..
8c27b11
100644
(file)
--- 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