grub-devel
[Top][All Lists]
Advanced

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

Re: [PATCH]: Add GRUB_DISABLE_SUBMENU option


From: Andrey Borzenkov
Subject: Re: [PATCH]: Add GRUB_DISABLE_SUBMENU option
Date: Wed, 30 Jan 2013 09:00:21 +0400

В Tue, 29 Jan 2013 18:33:00 -0500
Prarit Bhargava <address@hidden> пишет:

> 
> 
> On 01/29/2013 03:09 PM, Andrey Borzenkov wrote:
> >>   The problem is that the submenus get in the way of doing this.  
> >> grub2-reboot
> >>   does not allow one to set a reboot to a specific kernel.
> >>   
> > 
> > It does.
> > 
> > sudo /usr/sbin/grub2-reboot 'Advanced options for openSUSE 12.2>openSUSE 
> > 12.2, with Linux 3.4.6-2.10-desktop (recovery mode)'
> > 
> > better is to use menuentry id, but this works too.
> 
> Hi Andrey,
> 
> Interesting :), and I'm not going to deny I could code a script to do that.
> 
> However, given the large number of requests for disabling the submenus (google
> "grub2 disable submenus") it would still be preferable to myself and others
> (from just a general debug point of view) to be able to have the entries in a
> single list so that I can use the numeric feature of grub2-reboot.
> 
> ie) /usr/sbin/grub2-reboot 2
> 
> is always easier than having to type
> 
> /usr/sbin/grub2-reboot 'Advanced options for openSUSE 12.2>openSUSE 12.2, with
> Linux 3.4.6-2.10-desktop (recovery mode)'
> 

That's what good command line completion is for. Really :)

How is user going to know which number to type? Open grub.cfg and count?

> which requires me to grep through grub.cfg, figure out what submenu I'm under,
> and figure out what the entry is.
> 
> Again, I could script that out, but there seems to be enough momentum behind
> disabling the submenus that I think the patch may still have some merit.
> 

Actually I have patch to disable submenu somewhere around as well. So I
can well understand your feelings, I just think this is unrelated to
grub-reboot.

> Alternatively, would you object to me to adding some additional functionality 
> to
> grub2-reboot that would grep grub.cfg and display a menu of entries so that
> 'grub2-reboot #number' would work with submenus?
> 

I think something like "grub-reboot --select" would be interesting,
yes. But it is not for me to decide :)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]