Fix typo in /etc/grub.d/01_fallback_counting

Resolves: rhbz#1614637
Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
Peter Jones 2018-08-14 13:01:57 -04:00
parent 2d1140eb96
commit f0ceaa7597
2 changed files with 6 additions and 2 deletions

View File

@ -30,14 +30,14 @@ index cba4d500198..c8cb91308d9 100644
common = util/grub.d/01_menu_auto_hide.in;
diff --git a/util/grub.d/01_fallback_counting.in b/util/grub.d/01_fallback_counting.in
new file mode 100644
index 00000000000..37ee9e6ee85
index 00000000000..ecfc7401474
--- /dev/null
+++ b/util/grub.d/01_fallback_counting.in
@@ -0,0 +1,12 @@
+#! /bin/sh -e
+
+# Boot Counting
+if [ "\${boot_counter}" -a "\${boot_success}" = "0"]; then
+if [ "\${boot_counter}" -a "\${boot_success}" = "0" ]; then
+ if [ "\${boot_counter}" = "0" -o "\${boot_counter}" = "-1" ]; then
+ set default=1
+ set boot_counter=-1

View File

@ -499,6 +499,10 @@ fi
%endif
%changelog
* Tue Aug 14 2018 Peter Jones <pjones@redhat.com> - 2.02-50
- Fix typo in /etc/grub.d/01_fallback_counting
Resolves: rhbz#1614637
* Fri Aug 10 2018 Javier Martinez Canillas <javierm@redhat.com> - 2.02-50
- Add an installkernel script for BLS configurations