Don't check for exit code since SysCallError will be raised (#1228)
This commit is contained in:
parent
9e7565a9fb
commit
33ce7dbd8b
|
|
@ -775,7 +775,9 @@ class Installer:
|
|||
# And in which case we should do some clean up.
|
||||
|
||||
# Install the boot loader
|
||||
if SysCommand(f'/usr/bin/arch-chroot {self.target} bootctl --path=/boot install').exit_code != 0:
|
||||
try:
|
||||
SysCommand(f'/usr/bin/arch-chroot {self.target} bootctl --path=/boot install')
|
||||
except SysCallError:
|
||||
# Fallback, try creating the boot loader without touching the EFI variables
|
||||
SysCommand(f'/usr/bin/arch-chroot {self.target} bootctl --no-variables --path=/boot install')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue