]> git.ipfire.org Git - thirdparty/systemd.git/commit
find-esp: return pinned fd to ESP/XBOOTLDR 41658/head
authorLennart Poettering <lennart@amutable.com>
Mon, 13 Apr 2026 16:04:29 +0000 (18:04 +0200)
committerLennart Poettering <lennart@amutable.com>
Mon, 20 Apr 2026 15:19:27 +0000 (17:19 +0200)
commit853d0649d584d78dde4dc40df711a4f0dc79e69e
tree65b811178cdd2d13f63ca1944a84d31df7eea6a2
parent4712d70669d6d8987db8d64f294151a9e1305aeb
find-esp: return pinned fd to ESP/XBOOTLDR

The reworks the ESP/XBOOTLDR logic to pin the ESP/XBOOTLDR via an fd,
and return that as optional return parameter.

So far we only pinned the parent dir of the ESP/XBOOTLDR, which was
useful when verifying that ESP/XBOOTLDR is actually a mount point by
comparing mount ids. This however became obsolete with
a98a6eb95cc980edab4b0f9c59e6573edc7ffe0c. Hence, let's clean this up,
and pin the inode we really care about and return it.
16 files changed:
src/bless-boot/bless-boot.c
src/bootctl/bootctl-cleanup.c
src/bootctl/bootctl-install.c
src/bootctl/bootctl-random-seed.c
src/bootctl/bootctl-random-seed.h
src/bootctl/bootctl-status.c
src/bootctl/bootctl-unlink.c
src/bootctl/bootctl.c
src/bootctl/bootctl.h
src/kernel-install/kernel-install.c
src/shared/bootspec.c
src/shared/creds-util.c
src/shared/find-esp.c
src/shared/find-esp.h
src/sysupdate/sysupdate-resource.c
src/tpm2-setup/tpm2-swtpm.c