From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Hu, Robert" Subject: Re: [PATCH OSSTEST 01/12] Add support of parsing grub which has 'submenu' primitive Date: Thu, 12 Feb 2015 02:01:59 +0000 Message-ID: <9E79D1C9A97CFD4097BCE431828FDD31B14ACD@SHSMSX103.ccr.corp.intel.com> References: <1423648341-203755-1-git-send-email-robert.hu@intel.com> <1423648341-203755-2-git-send-email-robert.hu@intel.com> <21723.27327.610328.556698@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21723.27327.610328.556698@mariner.uk.xensource.com> Content-Language: en-US List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: "Pang, LongtaoX" , "jfehlig@suse.com" , "wei.liu2@citrix.com" , "ian.campbell@citrix.com" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org > -----Original Message----- > From: Ian Jackson [mailto:Ian.Jackson@eu.citrix.com] > Sent: Wednesday, February 11, 2015 10:44 PM > To: Hu, Robert > Cc: xen-devel@lists.xen.org; jfehlig@suse.com; wei.liu2@citrix.com; > ian.campbell@citrix.com; Pang, LongtaoX > Subject: Re: [PATCH OSSTEST 01/12] Add support of parsing grub which has > 'submenu' primitive > > Robert Ho writes ("[PATCH OSSTEST 01/12] Add support of parsing grub which > has 'submenu' primitive"): > > From a hvm kernel build from Linux stable Kernel tree, > > the auto generated grub2 menu will have 'submenu' primitive, upon the > > 'menuentry' items. Xen boot entries will be grouped into a submenu. This > > patch adds capability to support such grub formats. Also, this patch adjust > > some indent alignments. > > Thanks for this submission. Dealing with submenus is definitely > something we want to do. > > I haven't looked at the code in detail yet but I have a general > question: we currently count menu entries and eventually write > GRUB_DEFAULT= into /etc/default/grub. > > Does this work properly if the entry is in a submenu ? I guess you > have probably tested this but I thought I should ask... > Yes, this minor change just get 'parsemenu' subroutine capability of recognizing 'submenu'. The outer layer logic isn't affected. Actually, the Xen boot menuentry we choose, is inside a submenu. It works and /etc/default/grub is assigned properly. > Can you please not adjust the whitespace ? osstest in general doesn't > have a requirement for any particular whitespace use, and certainly if > there are to be any whitespace changes they ought to be in a separate > patch. I adjust those because some one in last version's reply told us that osstest prefers white space substitution to tab, and traditionally 4 white space of 1 tab. (This align with my previous coding experience as well) And I indeed find that this hunk of code doesn't looks well in my editor. Its unalignment increases difficulty of reading. I would suggest to adjust the this hunk's indentation and use white space substitution to tab to have best suitability across different editors. > > Thanks, > Ian.