From 1db3830418a0b4aedfc0f9a686e4715a35ed4640 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 6 Oct 2013 01:52:24 +0200 Subject: [PATCH] * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach kernels by version order. --- ChangeLog | 5 +++++ util/grub.d/10_hurd.in | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8a8f5c8ba..883f0802c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-10-04 Samuel Thibault + + * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach + kernels by version order. + 2013-10-04 Vladimir Serbinenko * util/random_unix.c: Add kFreeBSD to the list of secure RNG. diff --git a/util/grub.d/10_hurd.in b/util/grub.d/10_hurd.in index 293b5da03..4a1bab110 100644 --- a/util/grub.d/10_hurd.in +++ b/util/grub.d/10_hurd.in @@ -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