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

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