]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
installer: Fail if the bootloader could not be installed
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Feb 2024 12:02:11 +0000 (12:02 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Feb 2024 12:02:28 +0000 (12:02 +0000)
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 <michael.tremer@ipfire.org>
src/installer/install-bootloader

index d6451e0b11b11581cd2a22f1ece4989dd56774eb..340dd6aa5c480353d0160c48c9f6186d10113f91 100644 (file)
@@ -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