Skip to content

Commit 4655022

Browse files
leebickmtuTorxed
andauthored
Update bootctl command for new --variables= option (#3396)
Co-authored-by: Anton Hvornum <torxed@archlinux.org>
1 parent 43963a1 commit 4655022

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

archinstall/lib/installer.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,10 +1174,13 @@ def _add_systemd_bootloader(
11741174

11751175
# Install the boot loader
11761176
try:
1177-
SysCommand(f'arch-chroot {self.target} bootctl {" ".join(bootctl_options)} install')
1177+
# Force EFI variables since bootctl detects arch-chroot
1178+
# as a container environemnt since v257 and skips them silently.
1179+
# https://github.com/systemd/systemd/issues/36174
1180+
SysCommand(f"arch-chroot {self.target} bootctl --variables=yes {' '.join(bootctl_options)} install")
11781181
except SysCallError:
11791182
# Fallback, try creating the boot loader without touching the EFI variables
1180-
SysCommand(f'arch-chroot {self.target} bootctl --no-variables {" ".join(bootctl_options)} install')
1183+
SysCommand(f"arch-chroot {self.target} bootctl --variables=no {' '.join(bootctl_options)} install")
11811184

11821185
# Loader configuration is stored in ESP/loader:
11831186
# https://man.archlinux.org/man/loader.conf.5

0 commit comments

Comments
 (0)