4 Replies Latest reply on Nov 15, 2016 4:43 PM by Intel Corporation

    How to make journalctl save log from previous boot to diagnose a crash?

    cobster

      Recent yocto images have somehow disabled persistent storage of journal files so that you can only look at the log for the current boot. (even though "Storage=persistent" in journald.conf)

      They did this to prevent it from overrunning the rootfs partition.

      A previous thread Persistency of journal logs suggested creating a service to periodically backup the log to another file, but I think that's an imperfect solution because that file probably won't contain the crucial last few error entries. The system would be crashed at that point.

       

      Does anyone know an easy way to temporarily make it persistent like before, or set it to save only two logs rather than one? I can't figure out how the persistence was disabled.