Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.1:Update
grub2
grub2-linux-submenu.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File grub2-linux-submenu.patch of Package grub2
Index: grub-1.99/util/grub.d/10_linux.in =================================================================== --- grub-1.99.orig/util/grub.d/10_linux.in +++ grub-1.99/util/grub.d/10_linux.in @@ -144,6 +144,7 @@ esac prepare_boot_cache= prepare_root_cache= +in_submenu=false while [ "x$list" != "x" ] ; do linux=`version_find_latest $list` echo "Found linux image: $linux" >&2 @@ -196,4 +197,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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor