From 33ce7dbd8baf5402a20e850f503390b9c229e698 Mon Sep 17 00:00:00 2001 From: Luna <30698906+Lunarequest@users.noreply.github.com> Date: Sat, 21 May 2022 21:21:11 +0530 Subject: Don't check for exit code since SysCallError will be raised (#1228) --- archinstall/lib/installer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 85805ec2..e3bd16d3 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -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') -- cgit v1.2.3-54-g00ecf