summaryrefslogtreecommitdiffstats
path: root/src/systemctl/systemctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-01-28 18:56:53 +0100
committerLennart Poettering <lennart@poettering.net>2019-03-01 12:41:32 +0100
commita2f8664e9a544d7547f4fcdbfe2fa6396b8f7654 (patch)
tree3c91aca1788d4946d0f3e244661ee97e1c9c5f9f /src/systemctl/systemctl.c
parentsystemctl: add missing OOM checks (diff)
downloadsystemd-a2f8664e9a544d7547f4fcdbfe2fa6396b8f7654.tar.xz
systemd-a2f8664e9a544d7547f4fcdbfe2fa6396b8f7654.zip
bootspec: load entries from both the ESP and XBOOTLDR partitions
Let's simply search in both.
Diffstat (limited to '')
-rw-r--r--src/systemctl/systemctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index d30b607c43..57e3111b8d 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -3531,7 +3531,7 @@ static int load_kexec_kernel(void) {
if (access(KEXEC, X_OK) < 0)
return log_error_errno(errno, KEXEC" is not available: %m");
- r = find_default_boot_entry(NULL, &config, &e);
+ r = find_default_boot_entry(NULL, NULL, &config, &e);
if (r == -ENOKEY) /* find_default_boot_entry() doesn't warn about this case */
return log_error_errno(r, "Cannot find the ESP partition mount point.");
if (r < 0)