From 4c68bcb588de1bda5944e3bee09aaf314b450aa8 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 9 Feb 2024 12:02:11 +0000 Subject: [PATCH] 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 --- src/installer/install-bootloader | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5