Skip to content

Commit d176b95

Browse files
authored
Remove GRUB removable fallback path (#3971)
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.
1 parent 66fb496 commit d176b95

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

archinstall/lib/installer.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,14 +1321,7 @@ def _add_grub_bootloader(
13211321
try:
13221322
SysCommand(command, peek_output=True)
13231323
except SysCallError as err:
1324-
if not bootloader_removable:
1325-
command.append('--removable')
1326-
try:
1327-
SysCommand(command, peek_output=True)
1328-
except SysCallError:
1329-
pass
1330-
1331-
raise DiskError(f'Could not install GRUB to {self.target}{efi_partition.mountpoint}: {err}') from err
1324+
raise DiskError(f'Could not install GRUB to {self.target}{efi_partition.mountpoint}: {err}')
13321325
else:
13331326
info(f'GRUB boot partition: {boot_partition.dev_path}')
13341327

0 commit comments

Comments
 (0)