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

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