You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux vWinSrv 5.17.9-arch1-1 #1 SMP PREEMPT Wed, 18 May 2022 17:30:11 +0000 x86_64 GNU/Linux
CPU architecture issue was seen on
x86-64
Expected behaviour you didn't see
rc=0
Unexpected behaviour you saw
rc=1
Steps to reproduce the problem
setup a new VM with empty /efi dir
call bootctl install --no-variables inside a chroot
Additional program output to the terminal or log subsystem illustrating the issue
The first call ends with a bad return code, while the second once succeeds with rc=0
++ arch-chroot /tmp/inst-arch.Xd0IooHqeE bootctl install --no-variables
Created "/efi/EFI".
Created "/efi/EFI/systemd".
Created "/efi/EFI/BOOT".
Created "/efi/loader".
Created "/efi/loader/entries".
Created "/efi/EFI/Linux".
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/efi/EFI/systemd/systemd-bootx64.efi".
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/efi/EFI/BOOT/BOOTX64.EFI".
Random seed file /efi/loader/random-seed successfully written (512 bytes).
++ arch-chroot /tmp/inst-arch.Xd0IooHqeE bootctl install --no-variables
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/efi/EFI/systemd/systemd-bootx64.efi".
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/efi/EFI/BOOT/BOOTX64.EFI".
Random seed file /efi/loader/random-seed successfully written (512 bytes).
We are seeing this in the mkosi CI job - it was working fine till two days ago, and then it suddenly errors out. It doesn't look like anything that was merged here triggered it.
from systemd/mkosi#988: Running this with SYSTEMD_LOG_LEVEL=debug gives
Found container virtualization systemd-nspawn.
Using EFI System Partition at /efi.
Directory "/boot" is not the root of the file system.
Didn't find an XBOOTLDR partition, using the ESP as $BOOT.
Loaded machine ID <machine id> from /etc/machine-id.
Using entry token: <machine id>
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/efi/EFI/systemd/systemd-bootx64.efi".
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/efi/EFI/BOOT/BOOTX64.EFI".
Failed to use O_TMPFILE for /efi/loader/loader.conf: Operation not supported
Random seed file /efi/loader/random-seed successfully written (512 bytes).
Failed to use O_TMPFILE for /efi/loader/entries.srel: Operation not supported
In the end the line comes from open_tmpfile_linkable (via fopen_tmpfile_linkable), called in install_loader_config and install_loader_specification. The open_tmpfile_linkable code is unchanged since 2018, but the latter two functions were last touched in March.
Activity
bluca commentedon May 23, 2022
We are seeing this in the mkosi CI job - it was working fine till two days ago, and then it suddenly errors out. It doesn't look like anything that was merged here triggered it.
inst-arch: workaround systemd bootctl in 251-1
nafets227 commentedon May 23, 2022
I'll try to verify against downgraded systems and let you know.
AdrianVovk commentedon May 24, 2022
I've experienced this also in carbonOS with v251, so it's not just an arch issue.
I've looked at the code and I think I might have a theory what's going on with the v251 branch:
install_loader_specificationreturns 1 on successr=1inverb_installarg_touch_variablesis false, soinstall_variablesnever executes and so stillr=1verb_installreturns r, so it returns 1dispatch_verbwill pass the return value all the way up throughmainbootctlexits with 1, indicating failureCan't say anything about the
mainbranch... looks like the issue was fixed there already with 6e91653behrmann commentedon May 24, 2022
from systemd/mkosi#988: Running this with
SYSTEMD_LOG_LEVEL=debuggivesIn the end the line comes from
open_tmpfile_linkable(viafopen_tmpfile_linkable), called ininstall_loader_configandinstall_loader_specification. The open_tmpfile_linkablecode is unchanged since 2018, but the latter two functions were last touched in March.daandemeyer commentedon May 24, 2022
Bug in the new release, fix is already in systemd-stable. Should get released soonish
bluca commentedon May 24, 2022
v251.1 was released with a fix for this
inst-arch: remove workaround systemd bootctl"