~alpine/devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[alpine-devel] [PATCH] Let is_xen_dom0 fail silently

Eivind Uggedal <eivind@uggedal.com>
Details
Message ID
<1384517959-21682-1-git-send-email-eivind@uggedal.com>
Sender timestamp
1384517959
DKIM signature
missing
Download raw message
Patch: +1 -1
/proc/xen/capabilities can be non-existent while /proc/xen
exists.

This behaviour was seen when booting in rescue mode on
Linode.
---
 libalpine.sh.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libalpine.sh.in b/libalpine.sh.in
index a03deb3c6b91..7aec8155d1be 100644
--- a/libalpine.sh.in
+++ b/libalpine.sh.in
@@ -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
-- 
1.8.4.1



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Natanael Copa <ncopa@alpinelinux.org>
Details
Message ID
<20131115145957.05c2d1d8@ncopa-desktop.alpinelinux.org>
In-Reply-To
<1384517959-21682-1-git-send-email-eivind@uggedal.com> (view parent)
Sender timestamp
1384523997
DKIM signature
missing
Download raw message
On Fri, 15 Nov 2013 13:19:19 +0100
Eivind Uggedal <eivind@uggedal.com> wrote:

> /proc/xen/capabilities can be non-existent while /proc/xen
> exists.
> 
> This behaviour was seen when booting in rescue mode on
> Linode.
> ---
>  libalpine.sh.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libalpine.sh.in b/libalpine.sh.in
> index a03deb3c6b91..7aec8155d1be 100644
> --- a/libalpine.sh.in
> +++ b/libalpine.sh.in
> @@ -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

applied. thanks!

-nc


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)