* util/grub.d/20_linux_xen.in: Use submenus.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-09-21 00:58:59 +02:00
parent fc55cc4c27
commit ade9bd6642
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub.d/20_linux_xen.in: Use submenus.
2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
Support submenus.

View file

@ -104,6 +104,7 @@ while [ "x${xen_list}" != "x" ] ; do
xen_dirname=`dirname ${current_xen}`
rel_xen_dirname=`make_system_path_relative_to_its_root $xen_dirname`
xen_version=`echo $xen_basename | sed -e "s,.gz$,,g;s,^xen-,,g"`
echo "submenu \"Xen ${xen_version}\" {"
while [ "x$list" != "x" ] ; do
linux=`version_find_latest $list`
echo "Found linux image: $linux" >&2
@ -139,5 +140,6 @@ while [ "x${xen_list}" != "x" ] ; do
list=`echo $list | tr ' ' '\n' | grep -vx $linux | tr '\n' ' '`
done
echo "}"
xen_list=`echo $xen_list | tr ' ' '\n' | grep -vx $current_xen | tr '\n' ' '`
done