I haven't spent a lot of time with Grub 1.99 yet, as Natty won't be 'officially' released until next month and the Grub 2 files may still change further.
If you just want to boot a submenu entry, changing the "DEFAULT=" value in /etc/default/grub still appears to work, even though you may not see the menuentry on the grub screen. You can determine the number to use in the DEFAULT entry with this command, which counts and numbers the menuentries (or just count them manually in /boot/grub/grub.cfg):
Code:
grep menuentry /boot/grub/grub.cfg | cut -b 1-11 --complement | cut -d "'" -f1 | cut -d "\"" -f 1 | nl --starting-line-number=0
or more simply:
grep menuentry /boot/grub/grub.cfg # Count menuentries starting with 0.
If you want to display all the kernels and eliminate the submenu feature, here is an edit of /etc/grub.d/10_linux that will eliminate the linux kernel submenu. These lines (uncommented) appear at the bottom of the file.
Do not comment the "done" line.
Run "sudo update-grub" after saving the changes.
I can probably come up with a way to display only specific kernels in the main menu, but I haven't done it yet and will probably not do so until Natty is released. At that point, if I come up with a solution, I'll put it in my "Tweaks" thread, linked to in my signature line.
Bookmarks