[systemd-devel] list-boots is incorrect, was: lost journal persistence

poma pomidorabelisima at gmail.com
Mon May 12 08:24:07 PDT 2014


On 12.05.2014 15:06, Kirill Elagin wrote:
> Could it be that all the boot ids are actually the same for some reason?
> I had this issue in a container when systemd was reading boot_id from
> `/proc/sys/kernel/random/boot_id` and since /proc was bind-mounted, boot_id
> always was host's boot_id.
> 
> You can also run `journalctl -F _BOOT_ID` to see a set of all the boot ids
> recorded in the journal (this must agree with `journalctl --list-boots`.
> You can also add ` -o verbose` to see all the fields of records. Since you
> say that the messages are actually stored in the journal, it might be
> interesting to check their _BOOT_ID fields.

$ journalctl -F _BOOT_ID | wc -l
1159
$ journalctl --list-boots | wc -l
1159


poma




More information about the systemd-devel mailing list