'Attempting to make logs persistent but /var/log/journal is deleted on reboot
I'm working on a SoM running 5.4.80+g521466cb0f2c kernel. My goal is for journalD logs to persist indefinitely (up to size limit). The steps I followed for setting up persistent systemd logs were
mkdir /var/log/journal
systemd-tmpfiles --create --prefix /var/log/journal
systemctl restart systemd-journald.service
I left the journal.conf settings to auto
After that, everything seemed fine. /var/log/journal/8293ab5eb5f64ef3937cbb9ed84b4d3e was created and logs appeared to be being written correctly. I could still access new logs with journalctl. I rebooted the system and suddenly /var/log/journal does not exist and logs only exist from the latest power up. Is there a step I'm missing to make my logs actually persist through a powercycle?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
