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.
This commit is contained in:
parent
66fb49617a
commit
d176b9514c
|
|
@ -1321,14 +1321,7 @@ class Installer:
|
||||||
try:
|
try:
|
||||||
SysCommand(command, peek_output=True)
|
SysCommand(command, peek_output=True)
|
||||||
except SysCallError as err:
|
except SysCallError as err:
|
||||||
if not bootloader_removable:
|
raise DiskError(f'Could not install GRUB to {self.target}{efi_partition.mountpoint}: {err}')
|
||||||
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
|
|
||||||
else:
|
else:
|
||||||
info(f'GRUB boot partition: {boot_partition.dev_path}')
|
info(f'GRUB boot partition: {boot_partition.dev_path}')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue