From: Ian Jackson Subject: Re: [PATCH] tools/pygrub: fix solaris kernel sniff Date: Fri, 8 Jul 2011 18:16:26 +0100 Message-ID: <19991.15210.345950.186857@mariner.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Zhigang Wang Cc: kurt.hackel@oracle.com, xen-devel@lists.xensource.com, frank.che@oracle.com List-Id: xen-devel@lists.xenproject.org Zhigang Wang writes ("[Xen-devel] [PATCH] tools/pygrub: fix solaris kernel sniff"): > tools/pygrub: fix solaris kernel sniff > > Solaris 11 build 163+ removes '/platform/i86xpv/kernel/unix' and only the > 64-bit PV kernel file '/platform/i86xpv/kernel/amd64/unix' exists. Thanks but I'm not sure this is right. Previously, if none of the Solaris files in /platform exist, this code would unconditionally exit. Now you have moved the relevant return inside the if not cfg["kernel"]: so that on a non-Solaris platform if cfg["kernel"] is not set we will always do the "Unpleasant" tweaks. I don't think that's correct. Ian.