From: Robert Marshall Date: Fri, 29 Jan 2016 19:49:24 +0000 (-0500) Subject: Failed config now returns exit code (#1252311) X-Git-Tag: 2.02-rc1~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c3e96d0443e8de64ff29a6563fb69c8a37dd15a;p=thirdparty%2Fgrub.git Failed config now returns exit code (#1252311) Grub would notify the user if the new config was invalid, however, it did not exit properly with exit code 1. Added the proper exit code. Resolves: rhbz#1252311 --- diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in index 203b07696..f8496d28b 100644 --- a/util/grub-mkconfig.in +++ b/util/grub-mkconfig.in @@ -273,6 +273,7 @@ Ensure that there are no errors in /etc/default/grub and /etc/grub.d/* files or please file a bug report with %s file attached." "${grub_cfg}.new" >&2 echo >&2 + exit 1 else # none of the children aborted with error, install the new grub.cfg mv -f ${grub_cfg}.new ${grub_cfg}