1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-07 05:57:46 +03:00

bootctl: let's make sure we always add empty line after EFI binary output

Let's make sure we output another "\n", even if we fail this function,
so that the output we started is separated properly from what is
following.
This commit is contained in:
Lennart Poettering 2019-02-05 19:15:21 +01:00
parent 4a4994b68d
commit 882b3bd6c5

View File

@ -224,19 +224,21 @@ static int status_binaries(const char *esp_path, sd_id128_t partition) {
r = enumerate_binaries(esp_path, "EFI/systemd", NULL);
if (r < 0)
return r;
goto finish;
if (r == 0)
log_info("systemd-boot not installed in ESP.");
r = enumerate_binaries(esp_path, "EFI/BOOT", "boot");
if (r < 0)
return r;
goto finish;
if (r == 0)
log_info("No default/fallback boot loader installed in ESP.");
printf("\n");
r = 0;
return 0;
finish:
printf("\n");
return r;
}
static int print_efi_option(uint16_t id, bool in_order) {