2016-03-04 20:28:21 +00:00
|
|
|
From eaa05aa39e24bff667f48310871f64f367a78e3b Mon Sep 17 00:00:00 2001
|
2016-03-04 18:32:29 +00:00
|
|
|
From: Robert Marshall <rmarshall@redhat.com>
|
|
|
|
Date: Fri, 29 Jan 2016 14:49:24 -0500
|
2016-03-04 20:28:21 +00:00
|
|
|
Subject: [PATCH 03/85] Failed config now returns exit code (#1252311)
|
2016-03-04 18:32:29 +00:00
|
|
|
|
|
|
|
Grub would notify the user if the new config was invalid, however, it
|
|
|
|
did not exit properly with exit code 1. Added the proper exit code.
|
|
|
|
|
|
|
|
Resolves: rhbz#1252311
|
|
|
|
---
|
|
|
|
util/grub-mkconfig.in | 1 +
|
|
|
|
1 file changed, 1 insertion(+)
|
|
|
|
|
|
|
|
diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
|
2016-03-04 20:28:21 +00:00
|
|
|
index 203b076..f8496d2 100644
|
2016-03-04 18:32:29 +00:00
|
|
|
--- a/util/grub-mkconfig.in
|
|
|
|
+++ b/util/grub-mkconfig.in
|
2016-03-04 20:28:21 +00:00
|
|
|
@@ -273,6 +273,7 @@ Ensure that there are no errors in /etc/default/grub
|
2016-03-04 18:32:29 +00:00
|
|
|
and /etc/grub.d/* files or please file a bug report with
|
|
|
|
%s file attached." "${grub_cfg}.new" >&2
|
|
|
|
echo >&2
|
|
|
|
+ exit 1
|
|
|
|
else
|
|
|
|
# none of the children aborted with error, install the new grub.cfg
|
2016-03-04 20:28:21 +00:00
|
|
|
mv -f ${grub_cfg}.new ${grub_cfg}
|
2016-03-04 18:32:29 +00:00
|
|
|
--
|
|
|
|
2.5.0
|
|
|
|
|