]> git.ipfire.org Git - thirdparty/systemd.git/commit
bootctl: decouple "list", "unlink", "cleanup"
authorLennart Poettering <lennart@amutable.com>
Mon, 9 Feb 2026 13:20:27 +0000 (14:20 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 10 Feb 2026 19:43:04 +0000 (19:43 +0000)
commit8b736d94cdf5f2f1281f7f58c77b9676de3add1e
treed2b7b17d9b33342bf4ecde65549c6458b01a0e78
parent6b6d7ccd59d5a0524a9734f81211532ab000016c
bootctl: decouple "list", "unlink", "cleanup"

These operations to quite different things, they just share 2 common
funcs. Let's split them out into separate files.

This also splits up verb_list() into separate calls for the three
operations. This actually fixes issues, as for status/list we want
"unpriv" ESP discovery logic, but for the other two we really should
have privileged discovery logic.

This is preparation for adding "bootctl link" later, but this makes
sense either way, I am sure.
src/bootctl/bootctl-cleanup.c [new file with mode: 0644]
src/bootctl/bootctl-cleanup.h [new file with mode: 0644]
src/bootctl/bootctl-status.c
src/bootctl/bootctl-unlink.c [new file with mode: 0644]
src/bootctl/bootctl-unlink.h [new file with mode: 0644]
src/bootctl/bootctl.c
src/bootctl/bootspec-util.c [new file with mode: 0644]
src/bootctl/bootspec-util.h [new file with mode: 0644]
src/bootctl/meson.build
src/shared/shared-forward.h