As I wrote in the commit message, I have further developed log2ram so that it takes journald into account and makes sure to leave a consistent state. I have made some changes to the project. I'm happy to customize the whole thing as you need it.
Basically, before I copy the files back to the hard disk/SD card, I do a log rotate and copy only archived journal records.
Also, this pull request is based on the other one where I cleaned up the project a bit. So if you like this pull request you don't have to accept the other one.
Thanks for the merge. What is still important to me: I have of course tested this on my Debian 11 system, but can't say anything for other systems. So please test well. Thanks!
As I wrote in the commit message, I have further developed log2ram so that it takes journald into account and makes sure to leave a consistent state. I have made some changes to the project. I'm happy to customize the whole thing as you need it.
Basically, before I copy the files back to the hard disk/SD card, I do a log rotate and copy only archived journal records.
Also, this pull request is based on the other one where I cleaned up the project a bit. So if you like this pull request you don't have to accept the other one.