1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-22 22:03:43 +03:00

Merge pull request #25368 from yuwata/bootctl-ignore-invalid-boot-entries

bootctl: ignore invalid boot entries
This commit is contained in:
Yu Watanabe 2022-11-14 10:51:33 +09:00 committed by GitHub
commit bf0d5cba56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -586,11 +586,11 @@ static int print_efi_option(uint16_t id, int *n_printed, bool in_order) {
r = efi_get_boot_option(id, &title, &partition, &path, &active);
if (r < 0)
return log_error_errno(r, "Failed to read boot option %u: %m", id);
return log_debug_errno(r, "Failed to read boot option 0x%04X: %m", id);
/* print only configured entries with partition information */
if (!path || sd_id128_is_null(partition)) {
log_debug("Ignoring boot entry %u without partition information.", id);
log_debug("Ignoring boot entry 0x%04X without partition information.", id);
return 0;
}