From b0381485c05ddae5b2d73cdc5ecd5df614819950 Mon Sep 17 00:00:00 2001 From: Mintsuki Date: Fri, 5 Dec 2025 05:00:41 +0100 Subject: [PATCH] Remove GRUB removable fallback path As mentioned by @svartkanin on #3950, given we now have a way for the user to explicitly specify if they want to install to the removable location, having a fallback like this seems undesirable. On top of that, as mentioned by @correctmost on the same PR, the code that said PR introduced was bugged and would always raise an exception anyways. --- archinstall/lib/installer.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 3de0ec7dd0..03f5cd592e 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -1321,14 +1321,7 @@ def _add_grub_bootloader( try: SysCommand(command, peek_output=True) except SysCallError as err: - if not bootloader_removable: - command.append('--removable') - try: - SysCommand(command, peek_output=True) - except SysCallError: - pass - - raise DiskError(f'Could not install GRUB to {self.target}{efi_partition.mountpoint}: {err}') from err + raise DiskError(f'Could not install GRUB to {self.target}{efi_partition.mountpoint}: {err}') else: info(f'GRUB boot partition: {boot_partition.dev_path}')