From: Ian Campbell Subject: Re: [PATCH v3] tools/pygrub: Make pygrub understand default entry in string format Date: Thu, 3 Jul 2014 12:13:27 +0100 Message-ID: <1404386007.17693.1.camel@kazak.uk.xensource.com> References: <1403878051-4371-1-git-send-email-boris.ostrovsky@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1403878051-4371-1-git-send-email-boris.ostrovsky@oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Boris Ostrovsky Cc: xen-devel@lists.xen.org, ian.jackson@eu.citrix.com, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Fri, 2014-06-27 at 10:07 -0400, Boris Ostrovsky wrote: > Currently pygrub can only correctly parse grub2's default attribute when it is > specified as a number. If it is set to ${saved_entry} or ${next_entry} then > the first image (i.e. entry number 0) is selected. If any other value is > specified (typically this would be the string in menuentry) pygrub will crash. > > This patch will allow pygrub to interpret default attribute if it is specified > as a string (note that in case of submenus only the leaf string will be > considered). > > Also issue a warning if default is set to ${saved_entry} or ${next_entry}. > > Signed-off-by: Boris Ostrovsky Acked + applied. thanks.