File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments