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

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