On my RevPi, I want to enable persistent logging by systemd and journald.
Hardware: RevolutionPi Core SE
Image: 2023-09-26-revpi-bullseye-armhf
Attempt 1:
Change the appropriate configuration.
Code: Select all
Storage=persistent
Code: Select all
systemctl restart systemd-journald
This creates /var/log/journal (for group 'root') but logs do not persist after reboot.
Code: Select all
systemd-tmpfiles --create --prefix /var/log/journal
This changes the group to 'systemd-journal' but logs do not persist after reboot.
Code: Select all
systemctl restart systemd-journald
Attempt 2:
Create persistent logging directory manually without changing configuration.
Code: Select all
mkdir -p /var/log/journal
Code: Select all
systemctl restart systemd-journald
This creates /var/log/journal for group 'root' but logs do not persist after reboot.
Code: Select all
systemd-tmpfiles --create --prefix /var/log/journal
Code: Select all
systemctl restart systemd-journald
This changes the group to 'systemd-journal' but logs do not persist after reboot.
Also, /var/log/journal is removed after reboot.
How do I succesfully make the systemd logs persistent across system reboots?
Kind regards,
rispa