Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootctl, systemd-logind: Failed to open '/boot//loader/entries': Remote address changed #35293

Closed
bam80 opened this issue Nov 21, 2024 · 8 comments
Labels
bug 🐛 Programming errors, that need preferential fixing needs-reporter-feedback ❓ There's an unanswered question, the reporter needs to answer sd-boot/sd-stub/bootctl

Comments

@bam80
Copy link

bam80 commented Nov 21, 2024

systemd version the issue has been seen with

systemd 256 (256.8-1.fc41)

Used distribution

Fedora Linux 41.20241119.0 (Silverblue)

Linux kernel version used

6.11.8-300.fc41.x86_64

CPU architectures issue was seen on

x86_64

Component

bootctl

Expected behaviour you didn't see

$ bootctl list
           Boot Loader Entries:
                    type: Boot Loader Specification Type #1 (.conf)
                   title: Fedora Linux 36 (Workstation Edition) (default) (selected)
                      id: ...
                  source: /boot/efi/loader/entries/entry-token-kernel-version.conf
                 version: kernel-version
              machine-id: ...
                   linux: /entry-token/kernel-version/linux
                  initrd: /entry-token/kernel-version/initrd
                 options: root=...

                    type: Boot Loader Specification Type #2 (.efi)
...

Unexpected behaviour you saw

$ bootctl list 
Failed to open '/boot//loader/entries': Remote address changed

$ bootctl
Failed to open '/boot//loader/entries': Remote address changed
...

The same error from systemd-logind, see below.

Steps to reproduce the problem

transitioning to a separate /boot partition, run the bootctl command:
ostreedev/ostree#1719 (comment)

Other report on Silverblue:
https://unix.stackexchange.com/questions/785355/persistent-systemd-logind-error-in-fedora-silverblue-failed-to-open-boot-loa

Additional program output to the terminal or log subsystem illustrating the issue

# unrelated to the bootctl run

$ journalctl -b -u systemd-logind.service
...
ноя 19 21:04:02 host systemd-logind[918]: Failed to open '/boot//loader/entries': Remote address changed
ноя 19 21:14:09 host systemd-logind[918]: Failed to open '/boot//loader/entries': Remote address change
...
@bam80 bam80 added the bug 🐛 Programming errors, that need preferential fixing label Nov 21, 2024
@yuwata
Copy link
Member

yuwata commented Nov 21, 2024

The error code suggests that the path /boot//loader/entries contains symlink(s). Is it true?

@yuwata yuwata added the needs-reporter-feedback ❓ There's an unanswered question, the reporter needs to answer label Nov 21, 2024
@yuwata
Copy link
Member

yuwata commented Nov 21, 2024

Not familiar with ostree or silverblue, but judging from ostreedev/ostree#1719 (comment), ostree configures /boot/loader as a symlink. systemd-boot does not accept that.

@bam80
Copy link
Author

bam80 commented Nov 21, 2024

Well, we have to invent common solution, then :)

@bam80
Copy link
Author

bam80 commented Nov 21, 2024

systemd-boot does not accept that

Please note the system boots though, so maybe systemd-boot itself does actually accept that, but other user-mode utils (
bootctl, systemd-logind) don't?

@yuwata
Copy link
Member

yuwata commented Nov 22, 2024

Yeah, more accurately, (at least currently,) systemd-boot may work but we do not support such setup, and other tools like bootctl or so refuses such.

@cgwalters
Copy link
Member

Yes, work remains on the ostree side to match the current BLS type1 spec. The tracker is ostreedev/ostree#1951

@cgwalters cgwalters closed this as not planned Won't fix, can't repro, duplicate, stale Nov 22, 2024
@TriMoon
Copy link

TriMoon commented Nov 22, 2024

See also: #31179

@bam80
Copy link
Author

bam80 commented Nov 22, 2024

While using symlinks might be a problem per se, this particular issue is different.

Please note the circumstances when the issue first happened:

After transitioning to a separate /boot partition I started to see this error:

If I return to my previous /boot placement (on btrfs subvolume), I see no such error.

ostreedev/ostree#1719 (comment)

So there is no issue if / and /boot/ are on the same partition, even with the symlinks.

Having that, should we reopen this issue? @cgwalters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Programming errors, that need preferential fixing needs-reporter-feedback ❓ There's an unanswered question, the reporter needs to answer sd-boot/sd-stub/bootctl
Development

No branches or pull requests

4 participants