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

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