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

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