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

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