Blame SOURCES/0187-Failed-config-now-returns-exit-code-1252311.patch

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