Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-05-14 21:09:06 +0200
committerAnton Hvornum <anton@hvornum.se>2021-05-14 21:09:06 +0200
commit0df6eced77ce54177a9a38f1d6d2bc3fb8f91fc9 (patch)
tree89b47af6727d2dbb24a0538d979eb1a701336417 /archinstall/lib
parent71b14ec9fd6e4166fd43c5d1c19b283b5c9efea6 (diff)
Adding a fallback systemd-boot install if writing variables failed.
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 6c87b088..03b49f77 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -381,7 +381,9 @@ class Installer():
# And in which case we should do some clean up.
# Install the boot loader
- sys_command(f'/usr/bin/arch-chroot {self.target} bootctl --path=/boot install')
+ if sys_command(f'/usr/bin/arch-chroot {self.target} bootctl --path=/boot install').exit_code != 0:
+ # Fallback, try creating the boot loader without touching the EFI variables
+ sys_command(f'/usr/bin/arch-chroot {self.target} bootctl --no-variables --path=/boot install')
# Modify or create a loader.conf
if os.path.isfile(f'{self.target}/boot/loader/loader.conf'):