From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [PATCH] xend: update init script to avoid grep on non-existent file system Date: Sat, 15 May 2010 08:35:45 +0100 Message-ID: References: <4BEE2008.7020808@triad.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4BEE2008.7020808@triad.rr.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Richie , Xen Devel List-Id: xen-devel@lists.xenproject.org On 15/05/2010 05:16, "Richie" wrote: > I'm seeing a grep error during bare metal pvops kernel boot. In the > init script, the previous checks will avoid/perform the /proc/xen mount > as appropriate, but then it does a grep on /proc/xen/capabilities > without ensuring that /proc/xen is actually mounted. This is my attempt > (read: first patch :) ) to avoid it. Richie, Can you try adding the -s option to grep instead (i.e., grep -qs)? Should be a simpler way to achieve the same thing. I'll apply that instead if it works okay for you. -- Keir