From 46550221d1d9aa41a25cb743776d2f0ec86a7649 Mon Sep 17 00:00:00 2001 From: Korbin Bickel Date: Sun, 22 Jun 2025 07:55:38 -0400 Subject: [PATCH] Update bootctl command for new --variables= option (#3396) Co-authored-by: Anton Hvornum --- 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 51ab6443..b0126dcb 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -1174,10 +1174,13 @@ class Installer: # 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