Don't check for exit code since SysCallError will be raised (#1228)

This commit is contained in:
Luna 2022-05-21 21:21:11 +05:30 committed by GitHub
parent 9e7565a9fb
commit 33ce7dbd8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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')