[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] xend: update init script to avoid grep on non-existent file system


  • To: Richie <listmail@xxxxxxxxxxxx>, Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
  • Date: Sat, 15 May 2010 08:35:45 +0100
  • Cc:
  • Delivery-date: Sat, 15 May 2010 00:36:44 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acrz5XZu7B1W0G70TNO6k5VS8cRb9wAG8Q8r
  • Thread-topic: [Xen-devel] [PATCH] xend: update init script to avoid grep on non-existent file system

On 15/05/2010 05:16, "Richie" <listmail@xxxxxxxxxxxx> 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



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.