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
This commit is contained in:
parent
15aee573d2
commit
3c3e96d044
1 changed files with 1 additions and 0 deletions
|
@ -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
|
and /etc/grub.d/* files or please file a bug report with
|
||||||
%s file attached." "${grub_cfg}.new" >&2
|
%s file attached." "${grub_cfg}.new" >&2
|
||||||
echo >&2
|
echo >&2
|
||||||
|
exit 1
|
||||||
else
|
else
|
||||||
# none of the children aborted with error, install the new grub.cfg
|
# none of the children aborted with error, install the new grub.cfg
|
||||||
mv -f ${grub_cfg}.new ${grub_cfg}
|
mv -f ${grub_cfg}.new ${grub_cfg}
|
||||||
|
|
Loading…
Reference in a new issue