2018-01-17 22:04:09 +00:00
|
|
|
From e84a66eb07c96db182d57f4d40ff7c607a0e5296 Mon Sep 17 00:00:00 2001
|
2014-09-29 15:48:01 +00:00
|
|
|
From: Peter Jones <pjones@redhat.com>
|
|
|
|
Date: Thu, 4 Sep 2014 15:52:08 -0400
|
2018-01-17 22:04:09 +00:00
|
|
|
Subject: [PATCH 122/198] Minimize the sort ordering for .debug and -rescue-
|
2014-09-29 15:48:01 +00:00
|
|
|
kernels.
|
|
|
|
|
|
|
|
Resolves: rhbz#1065360
|
|
|
|
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
|
---
|
|
|
|
util/grub-mkconfig_lib.in | 8 ++++++++
|
|
|
|
1 file changed, 8 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/util/grub-mkconfig_lib.in b/util/grub-mkconfig_lib.in
|
2018-01-17 22:04:09 +00:00
|
|
|
index cf35e4174..10fabee5e 100644
|
2014-09-29 15:48:01 +00:00
|
|
|
--- a/util/grub-mkconfig_lib.in
|
|
|
|
+++ b/util/grub-mkconfig_lib.in
|
2018-01-17 22:04:09 +00:00
|
|
|
@@ -248,6 +248,14 @@ version_test_gt ()
|
2014-09-29 15:48:01 +00:00
|
|
|
*.old:*.old) ;;
|
2015-07-22 13:44:51 +00:00
|
|
|
*.old:*) version_test_gt_a="`echo "$version_test_gt_a" | sed -e 's/\.old$//'`" ; version_test_gt_cmp=gt ;;
|
|
|
|
*:*.old) version_test_gt_b="`echo "$version_test_gt_b" | sed -e 's/\.old$//'`" ; version_test_gt_cmp=ge ;;
|
2016-08-25 18:42:57 +00:00
|
|
|
+ *-rescue*:*-rescue*) ;;
|
|
|
|
+ *?debug:*?debug) ;;
|
|
|
|
+ *-rescue*:*?debug) return 1 ;;
|
|
|
|
+ *?debug:*-rescue*) return 0 ;;
|
|
|
|
+ *-rescue*:*) return 1 ;;
|
|
|
|
+ *:*-rescue*) return 0 ;;
|
|
|
|
+ *?debug:*) return 1 ;;
|
|
|
|
+ *:*?debug) return 0 ;;
|
2014-09-29 15:48:01 +00:00
|
|
|
esac
|
|
|
|
version_test_numeric "$version_test_gt_a" "$version_test_gt_cmp" "$version_test_gt_b"
|
|
|
|
return "$?"
|
|
|
|
--
|
2018-01-17 20:40:19 +00:00
|
|
|
2.14.3
|
2014-09-29 15:48:01 +00:00
|
|
|
|