Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorLuna <30698906+Lunarequest@users.noreply.github.com>2022-05-21 21:21:11 +0530
committerGitHub <noreply@github.com>2022-05-21 17:51:11 +0200
commit33ce7dbd8baf5402a20e850f503390b9c229e698 (patch)
tree6dc53c50efbb30bb9ead599df0ba5e1ea4d65a35 /archinstall/lib
parent9e7565a9fbb4e3e9c908c8200e31fff126be5f0d (diff)
Don't check for exit code since SysCallError will be raised (#1228)
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/installer.py4
1 files changed, 3 insertions, 1 deletions
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')