* util/grub.d/10_hurd.in: Use version_find_latest to sort gnumach

kernels by version order.
This commit is contained in:
Samuel Thibault 2013-10-06 01:52:24 +02:00
parent fb295fc070
commit 1db3830418
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
* util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
kernels by version order.
2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
* util/random_unix.c: Add kFreeBSD to the list of secure RNG.

View file

@ -153,8 +153,8 @@ title_correction_code=
submenu_indentation=""
is_first_entry=true
for kernel in ${kernels}
do
while [ "x$kernels" != "x" ] ; do
kernel=`version_find_latest $kernels`
if [ "x$is_first_entry" = xtrue ]; then
hurd_entry "$kernel" simple
@ -166,6 +166,8 @@ do
hurd_entry "$kernel" advanced
hurd_entry "$kernel" recovery
kernels=`echo $kernels | tr ' ' '\n' | grep -vx $kernel | tr '\n' ' '`
is_first_entry=false
done