summaryrefslogtreecommitdiff
path: root/src/shared/bootspec.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-09-26 07:45:56 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-10-08 16:06:26 +0200
commit1b20d88987d0785da7e694fd0e002c14142e08e3 (patch)
treef91329c323397361acef008dcb0229bd2ea1bd45 /src/shared/bootspec.h
parente83419d043e4f1e11f52d9a3360b0e5bdea71031 (diff)
downloadsystemd-1b20d88987d0785da7e694fd0e002c14142e08e3.tar.gz
systemd-1b20d88987d0785da7e694fd0e002c14142e08e3.tar.bz2
systemd-1b20d88987d0785da7e694fd0e002c14142e08e3.zip
Move logic to find default sd-boot entry from systemctl to shared
In preparation for use in other places. No functional change.
Diffstat (limited to 'src/shared/bootspec.h')
-rw-r--r--src/shared/bootspec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/bootspec.h b/src/shared/bootspec.h
index 614df698e6..e0fcaaea6f 100644
--- a/src/shared/bootspec.h
+++ b/src/shared/bootspec.h
@@ -51,3 +51,5 @@ static inline const char* boot_entry_title(const BootEntry *entry) {
}
int find_esp_and_warn(const char *path, bool unprivileged_mode, char **ret_path, uint32_t *ret_part, uint64_t *ret_pstart, uint64_t *ret_psize, sd_id128_t *ret_uuid);
+
+int find_default_boot_entry(const char *esp_path, char **esp_where, BootConfig *config, const BootEntry **e);