[systemd-devel] Journalctl reading incorrect file

John Lane systemd at jelmail.com
Thu Jan 28 17:42:35 UTC 2021



> journalctl reads from both dirs, always. What makes you think it reads
> from the wrong dir only?
> 

when I do `journalctl` I only get output up to the switch-root:


Jan 28 08:33:31 archlinux systemd[1]: Reached target Switch Root.
Jan 28 08:33:31 archlinux systemd[1]: Starting Switch Root...
Jan 28 08:33:31 archlinux systemd[1]: Switching root.
Jan 28 08:33:31 archlinux audit: BPF prog-id=8 op=UNLOAD
Jan 28 08:33:31 archlinux audit: BPF prog-id=7 op=UNLOAD
Jan 28 08:33:31 archlinux audit: BPF prog-id=10 op=UNLOAD
Jan 28 08:33:31 archlinux audit: BPF prog-id=9 op=UNLOAD
Jan 28 08:33:31 archlinux systemd-journald[235]: Journal stopped

If I use -D to select the newest subdir of /var/log/journal then
I see live messages.

So I think it's reading from /run and not from /var but I could of
course be wrong. I'm just going on the fact that the "live" data is
definitely on /var and the /run file ends with the output above.


More information about the systemd-devel mailing list