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

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