2016-04-05 19:32:41 +00:00
|
|
|
From 9e58670eba056f4a502d0c52f0e9663a99a31651 Mon Sep 17 00:00:00 2001
|
2014-09-29 15:48:01 +00:00
|
|
|
From: Peter Jones <pjones@redhat.com>
|
2016-03-07 19:10:17 +00:00
|
|
|
Date: Tue, 28 Apr 2015 11:17:02 -0400
|
2016-04-05 19:32:41 +00:00
|
|
|
Subject: [PATCH 62/88] Make rescue and debug entries sort right /again/ in
|
2016-03-07 19:10:17 +00:00
|
|
|
grub2-mkconfig.
|
|
|
|
|
|
|
|
Related: rhbz#12145839
|
2014-09-29 15:48:01 +00:00
|
|
|
|
|
|
|
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
|
---
|
2016-03-07 19:10:17 +00:00
|
|
|
util/grub-mkconfig_lib.in | 16 ++++++++--------
|
|
|
|
1 file changed, 8 insertions(+), 8 deletions(-)
|
2014-09-29 15:48:01 +00:00
|
|
|
|
|
|
|
diff --git a/util/grub-mkconfig_lib.in b/util/grub-mkconfig_lib.in
|
2016-03-07 19:10:17 +00:00
|
|
|
index 38dbcee..10fabee 100644
|
2014-09-29 15:48:01 +00:00
|
|
|
--- a/util/grub-mkconfig_lib.in
|
|
|
|
+++ b/util/grub-mkconfig_lib.in
|
2016-03-07 19:10:17 +00:00
|
|
|
@@ -248,14 +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-03-07 19:10:17 +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 ;;
|
2016-03-04 18:32:29 +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 "$?"
|
|
|
|
--
|
2016-04-05 19:32:41 +00:00
|
|
|
2.5.5
|
2014-09-29 15:48:01 +00:00
|
|
|
|