c78952
From 974241c42b03f3ccb6a5d0eb453283e370da9848 Mon Sep 17 00:00:00 2001
f4c76c
From: Peter Jones <pjones@redhat.com>
f4c76c
Date: Thu, 4 Sep 2014 15:52:08 -0400
31cddd
Subject: [PATCH] Minimize the sort ordering for .debug and -rescue-
f4c76c
 kernels.
f4c76c
f4c76c
Resolves: rhbz#1065360
f4c76c
Signed-off-by: Peter Jones <pjones@redhat.com>
f4c76c
---
f4c76c
 util/grub-mkconfig_lib.in | 8 ++++++++
f4c76c
 1 file changed, 8 insertions(+)
f4c76c
f4c76c
diff --git a/util/grub-mkconfig_lib.in b/util/grub-mkconfig_lib.in
ec4acb
index cf35e417470..10fabee5e14 100644
f4c76c
--- a/util/grub-mkconfig_lib.in
f4c76c
+++ b/util/grub-mkconfig_lib.in
6f1e3d
@@ -248,6 +248,14 @@ version_test_gt ()
f4c76c
     *.old:*.old) ;;
f4c76c
     *.old:*) version_test_gt_a="`echo "$version_test_gt_a" | sed -e 's/\.old$//'`" ; version_test_gt_cmp=gt ;;
f4c76c
     *:*.old) version_test_gt_b="`echo "$version_test_gt_b" | sed -e 's/\.old$//'`" ; version_test_gt_cmp=ge ;;
9d15b4
+    *-rescue*:*-rescue*) ;;
9d15b4
+    *?debug:*?debug) ;;
9d15b4
+    *-rescue*:*?debug) return 1 ;;
9d15b4
+    *?debug:*-rescue*) return 0 ;;
9d15b4
+    *-rescue*:*) return 1 ;;
9d15b4
+    *:*-rescue*) return 0 ;;
9d15b4
+    *?debug:*) return 1 ;;
9d15b4
+    *:*?debug) return 0 ;;
f4c76c
   esac
f4c76c
   version_test_numeric "$version_test_gt_a" "$version_test_gt_cmp" "$version_test_gt_b"
f4c76c
   return "$?"