Commit 853ea856 authored by Eivind Uggedal's avatar Eivind Uggedal Committed by Natanael Copa

Let is_xen_dom0 fail silently

/proc/xen/capabilities can be non-existent while /proc/xen
exists.

This behaviour was seen when booting in rescue mode on
Linode.
parent e8c99e12
......@@ -89,7 +89,7 @@ is_xen() {
# Detect if we are running Xen Dom0
is_xen_dom0() {
is_xen && \
grep -q "control_d" /proc/xen/capabilities
grep -q "control_d" /proc/xen/capabilities 2>/dev/null
}
# list of available network interfaces that aren't part of any bridge or bond
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment