Summary: | journalctl mixes new logs with logs from the previous boot on crash (no RTC) | ||
---|---|---|---|
Product: | systemd | Reporter: | Peter Wu <peter> |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED MOVED | QA Contact: | systemd-bugs |
Severity: | normal | ||
Priority: | medium | CC: | drizzd |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Peter Wu
2013-05-19 13:00:38 UTC
I guess we could a mode where journalctl orders messages first by boot_id, and then by the monotonic time. Shouldn't be too hard: for sd_journal_enumerate_unique("BOOT_ID"): sd_journal_add_match("BOOT_ID=...") logs_show() Might even be useful to people who have an rtc but it's not functioning currently. I wonder how rare such a situation is. http://cgit.freedesktop.org/systemd/systemd/commit/?id=ece6e766 and http://cgit.freedesktop.org/systemd/systemd/commit/?id=d636d376 add /var/lib/systemd/clock file, which is timestamped whenever systemd-timesyncd is running and an ntp time is acquired. This should solve your issue partially. A very similar issue exists in github, we should probably continue discussion there. https://github.com/systemd/systemd/issues/662 |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.