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: Prarit Bhargava
Subject: Re: [PATCH]: Add GRUB_DISABLE_SUBMENU option
Date: Tue, 29 Jan 2013 18:33:00 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110419 Red Hat/3.1.10-1.el6_0 Thunderbird/3.1.10


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)'

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.

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?

P.



reply via email to

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