X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from dal-a2.localdomain (unknown [74.117.189.115]) by mail.alpinelinux.org (Postfix) with ESMTP id 2B3F0DC00A8 for ; Fri, 15 Nov 2013 14:00:02 +0000 (UTC) Received: from ncopa-desktop.alpinelinux.org (3.203.202.84.customer.cdi.no [84.202.203.3]) (using SSLv3 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: ncopa@tanael.org) by dal-a2.localdomain (Postfix) with ESMTPSA id 57C14BC3A0E; Fri, 15 Nov 2013 14:00:01 +0000 (UTC) Date: Fri, 15 Nov 2013 14:59:57 +0100 From: Natanael Copa To: Eivind Uggedal Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] [PATCH] Let is_xen_dom0 fail silently Message-ID: <20131115145957.05c2d1d8@ncopa-desktop.alpinelinux.org> In-Reply-To: <1384517959-21682-1-git-send-email-eivind@uggedal.com> References: <1384517959-21682-1-git-send-email-eivind@uggedal.com> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.20; x86_64-alpine-linux-uclibc) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 15 Nov 2013 13:19:19 +0100 Eivind Uggedal 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 ---