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.
This commit is contained in:
Lennart Poettering
2026-02-10 19:43:04 +00:00
committed by Luca Boccassi
parent 6b6d7ccd59
commit 8b736d94cd
10 changed files with 444 additions and 304 deletions
+1
View File
@@ -46,6 +46,7 @@ typedef enum UserStorage UserStorage;
typedef struct Bitmap Bitmap;
typedef struct BPFProgram BPFProgram;
typedef struct BootConfig BootConfig;
typedef struct BusObjectImplementation BusObjectImplementation;
typedef struct CalendarSpec CalendarSpec;
typedef struct Condition Condition;