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

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