Files
systemd/src
Yu Watanabe 185e201690 journalctl: find boot ID more gracefully in corrupted journal
In discover_next_boot(), first we find a new boot ID based on the value
stored in the entry object. Then, find the tail (or head when we are going
upwards) entry of the boot based on the _BOOT_ID= field data.

If boot IDs of an entry in the entry object and _BOOT_ID field data
are inconsistent, which may happen on corrupted journal, then previously
discover_next_boot() failed with -ENODATA.

This makes the function check if the two boot IDs in each entry are
consistent, and skip the entry if not.

Fixes the failure of `journalctl -b -1` for 'truncated' journal:
https://github.com/systemd/systemd/pull/29334#issuecomment-1736567951
2023-10-02 10:59:33 +09:00
..
2023-09-19 10:05:38 +02:00
2023-09-26 15:35:06 +02:00
2023-09-21 18:01:03 +02:00
2023-10-01 10:28:55 +02:00
2023-09-14 22:32:20 +02:00
2023-09-09 14:11:03 +02:00
2023-09-19 00:37:01 +01:00
2023-08-17 09:48:17 +02:00
2023-09-27 21:48:39 +08:00
2023-08-17 09:48:17 +02:00
2023-09-19 10:05:38 +02:00
2023-09-29 11:31:12 +02:00