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:
acd6bec
)
xen: Don't emit warning message if /proc/xen/capabilities file does not exist.
author
Richard W.M. Jones
<rjones@redhat.com>
Mon, 28 Oct 2013 11:09:24 +0000
(11:09 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Mon, 28 Oct 2013 11:11:31 +0000
(11:11 +0000)
On Amazon EC2:
xen
grep: /proc/xen/capabilities: No such file or directory
xen-domU
The warning is harmless but should not be printed.
Thanks: Can Zhang for testing.
virt-what.in
patch
|
blob
|
history
diff --git
a/virt-what.in
b/virt-what.in
index
bf663aa
..
4b6d3b8
100644
(file)
--- a/
virt-what.in
+++ b/
virt-what.in
@@
-199,7
+199,7
@@
if [ "$cpuid" = "XenVMMXenVMM" ]; then
skip_qemu_kvm=true
elif [ -d "${root}/proc/xen" ]; then
echo xen
- if grep -q "control_d" "${root}/proc/xen/capabilities"; then
+ if grep -q "control_d" "${root}/proc/xen/capabilities"
2>/dev/null
; then
echo xen-dom0
else
echo xen-domU