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.

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to