Blame SOURCES/0057-Minimize-the-sort-ordering-for-.debug-and-rescue-ker.patch

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