]> git.proxmox.com Git - grub2.git/commitdiff
Failed config now returns exit code (#1252311)
authorRobert Marshall <rmarshall@redhat.com>
Fri, 29 Jan 2016 19:49:24 +0000 (14:49 -0500)
committerVladimir Serbinenko <phcoder@gmail.com>
Fri, 11 Mar 2016 16:24:56 +0000 (17:24 +0100)
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

util/grub-mkconfig.in

index 203b076966c0f5ef80eb93e7aebd01848a7c73b9..f8496d28bdf7f4bcbc2413888330834c1e252a64 100644 (file)
@@ -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}