bootctl: add "link" command
This commit is contained in:
@@ -52,6 +52,12 @@ extern char *arg_private_key;
|
||||
extern KeySourceType arg_private_key_source_type;
|
||||
extern char *arg_private_key_source;
|
||||
extern bool arg_oldest;
|
||||
extern uint64_t arg_keep_free;
|
||||
extern char *arg_entry_title;
|
||||
extern char *arg_entry_version;
|
||||
extern uint64_t arg_entry_commit;
|
||||
extern char **arg_extras;
|
||||
extern unsigned arg_tries_left;
|
||||
|
||||
static inline const char* arg_dollar_boot_path(void) {
|
||||
/* $BOOT shall be the XBOOTLDR partition if it exists, and otherwise the ESP */
|
||||
@@ -68,3 +74,7 @@ int acquire_xbootldr(int unprivileged_mode, int *ret_fd, sd_id128_t *ret_uuid, d
|
||||
* string, but we limit the length to something reasonable to prevent from the firmware
|
||||
* having to deal with a potentially too long string. */
|
||||
#define EFI_BOOT_OPTION_DESCRIPTION_MAX ((size_t) 255)
|
||||
|
||||
/* Before we "materialize" a new entry, let's ensure we have this much space free still on the partition, by
|
||||
* default */
|
||||
#define KEEP_FREE_BYTES_DEFAULT (5U * U64_MB)
|
||||
|
||||
Reference in New Issue
Block a user