Bug#690538: grub-common: Please make submenu creation optional or at least allow users to disable it easily

Craig Sanders cas at taz.net.au
Sat May 25 07:15:03 UTC 2013


On Mon, May 13, 2013 at 10:36:14AM +0100, Colin Watson wrote:
> Control: forwarded -1 https://savannah.gnu.org/bugs/?36850
> 
> On Mon, May 13, 2013 at 01:32:50PM +1000, Craig Sanders wrote:
> > amongst other problems, it breaks grub-set-default and grub-reboot,
> > because the submenu entry messes up the numerical ordering of the
> > menuentries.
> 
> Are you aware that you can set entries in submenus as the default like
> this:
> 
>   https://help.ubuntu.com/community/Grub2/Submenus#Setting_a_Submenu_entry_as_the_default

yeah, i knew that, but specifying the complete name of the menu option
for grub-set-default is tedious and error prone.

actually, this bug annoys me less now that i've modified by
grub-list-kernels.pl script to deal with submenus, so i can use the "1>0"
style numbering easily.

e.g.

# grub-list-kernels.pl
   0	Debian GNU/Linux	
   1	Advanced options for Debian GNU/Linux	
 1>0	Debian GNU/Linux, with Linux 3.8-1-amd64	
 1>1	Debian GNU/Linux, with Linux 3.8-1-amd64 (recovery mode)	
 1>2	Debian GNU/Linux, with Linux 3.7-trunk-amd64	
 1>3	Debian GNU/Linux, with Linux 3.7-trunk-amd64 (recovery mode)	
 1>4	Debian GNU/Linux, with Linux 3.2.0-4-amd64	
 1>5	Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode)	
   2	Network boot (iPXE)	
   3	Bootable floppy: LSI	
   4	Bootable floppy: freedos-bare	

  Default: 0  "Debian GNU/Linux"

I'll attach a copy of the script to this message - feel free to add it
to the package if you like.


> It would be helpful to send the patch to the corresponding upstream bug:
> 
>   https://savannah.gnu.org/bugs/?36850

OK, I'll do that. need to create a login on savannah first.

FYI, the patch I sent is not quite complete - also need to
add GRUB_ENABLE_SUBMENUS to the list of exported vars in
/usr/sbin/grub-mkconfig.


i probably should submit my grub-list-kernels.pl script as a contrib
item there, too.


craig

-- 
craig sanders <cas at taz.net.au>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grub-list-kernels.pl
Type: text/x-perl
Size: 2659 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20130525/3de792a2/attachment.pl>


More information about the Pkg-grub-devel mailing list