What do people think of this? It's a remarkably small change now that Vladimir's implemented submenus, and I've had a number of requests for it.
I wonder if it would be worth having some visual indication that a menu entry is a submenu; but that probably ought to be done centrally. I don't know whether this is 1.99 material or not, and would appreciate comments. 2010-11-24 Colin Watson <cjwat...@ubuntu.com> * util/grub.d/10_linux.in: Put second and subsequent menu entries in a submenu. === modified file 'util/grub.d/10_linux.in' --- util/grub.d/10_linux.in 2010-11-01 11:49:40 +0000 +++ util/grub.d/10_linux.in 2010-11-24 17:15:27 +0000 @@ -114,6 +114,7 @@ list=`for i in /boot/vmlinuz-* /boot/vml done` prepare_boot_cache= +in_submenu=false while [ "x$list" != "x" ] ; do linux=`version_find_latest $list` echo "Found linux image: $linux" >&2 @@ -159,4 +160,13 @@ while [ "x$list" != "x" ] ; do fi list=`echo $list | tr ' ' '\n' | grep -vx $linux | tr '\n' ' '` + + if [ "$list" ] && ! $in_submenu; then + echo "submenu \"Previous Linux versions\" {" + in_submenu=: + fi done + +if $in_submenu; then + echo "}" +fi -- Colin Watson [cjwat...@ubuntu.com] _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel