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

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