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

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