From f579af8b67edea683d67b33aca68a3705b1265c2 Mon Sep 17 00:00:00 2001 From: Korbin Bickel Date: Wed, 16 Apr 2025 13:45:58 -0400 Subject: [PATCH] Update bootctl command for new --variables= option --- archinstall/lib/installer.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 2a0da7284e..036a78d943 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -1110,10 +1110,13 @@ def _add_systemd_bootloader( # Install the boot loader try: - SysCommand(f"arch-chroot {self.target} bootctl {' '.join(bootctl_options)} install") + # Force EFI variables since bootctl detects arch-chroot + # as a container environemnt since v257 and skips them silently. + # https://github.com/systemd/systemd/issues/36174 + SysCommand(f"arch-chroot {self.target} bootctl --variables=yes {' '.join(bootctl_options)} install") except SysCallError: # Fallback, try creating the boot loader without touching the EFI variables - SysCommand(f"arch-chroot {self.target} bootctl --no-variables {' '.join(bootctl_options)} install") + SysCommand(f"arch-chroot {self.target} bootctl --variables=no {' '.join(bootctl_options)} install") # Loader configuration is stored in ESP/loader: # https://man.archlinux.org/man/loader.conf.5