I have a
journald running on my board. The system was built by means of
systemd version is 216.
What I want to get is a kernel boot log, which can be obtained with
journalctl -k. But as far as I see a long version of this option is
--dmesg, which leads me to think that this is retrieved from kernel ring buffer. Obviously if the system runs for days I might no get this information. Is my understanding correct here?
The question is now is there an option for
journald to dump this info right after system booted? If not, is it sufficient just to call
journalctl -k > dmesg.log as the last step of booting process?