From: Michael Tremer Date: Fri, 9 Feb 2024 12:02:11 +0000 (+0000) Subject: installer: Fail if the bootloader could not be installed X-Git-Tag: v2.29-core184~12^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4c68bcb588de1bda5944e3bee09aaf314b450aa8;p=ipfire-2.x.git installer: Fail if the bootloader could not be installed If GRUB could not be installed during installation, the installer continued without reporting the error to the user. This change will make the installer fail. Signed-off-by: Michael Tremer --- diff --git a/src/installer/install-bootloader b/src/installer/install-bootloader index d6451e0b11..340dd6aa5c 100644 --- a/src/installer/install-bootloader +++ b/src/installer/install-bootloader @@ -172,12 +172,12 @@ function main() { if device_is_mdraid "${device}"; then local slave for slave in $(mdraid_get_slaves "${device}"); do - grub_install "${slave}" + grub_install "${slave}" || return $? done # Handle normal block devices else - grub_install "${device}" + grub_install "${device}" || return $? fi return 0