Skip to content

Commit 1205fd6

Browse files
committed
fix: Persistent journal on raspberrypi
1 parent 4ab6262 commit 1205fd6

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎system/Dockerfile.rpi-arm64‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ RUN mkdir -p /data && \
132132
rm -Rf /var/lib/containerd && mkdir -p /data/containerd && ln -sf /data/containerd /var/lib/containerd && \
133133
rm -Rf /root/.docker && mkdir -p /data/.docker && ln -sf /data/.docker /root/.docker && \
134134
echo "[Journal]\nStorage=persistent\nSystemMaxUse=1G\nRuntimeMaxUse=50M\nCompress=yes\nSeal=yes\nSplitMode=uid\nSyncIntervalSec=5m\nRateLimitInterval=30s\nRateLimitBurst=1000" >/etc/systemd/journald.conf && \
135+
rm -f /usr/lib/systemd/journald.conf.d/70-rpi-volatile-storage.conf && \
135136
rm /etc/network/interfaces && \
136137
mkdir -p /data/shieldor && \
137138
ln -sf /data/shieldor /usr/local/shieldor && \

‎system/cuos/do-rollback.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ sync
7777
umount "${TARGET_BOOT}" || umount -l "${TARGET_BOOT}" || {
7878
echo "Warning: Failed to unmount ${TARGET_BOOT}. Is it busy?"
7979
}
80-
echo "Boot configuration updated for partition ${PARTITION_NAME}."
80+
echo "Boot configuration updated for rollback."
8181

8282
echo "Rebooting ..."
8383
reboot

‎system/cuos/init.sh‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ prepare_data_volume() {
7878
systemd-machine-id-setup
7979
mkdir -p /data/{docker,containerd,dhcp,log,shieldor,.docker}
8080
mkdir -p /data/log/journal
81+
chattr -R +C /data/log/journal
8182
chown -R root:systemd-journal /data/log/journal
8283
chmod 2755 /data/log/journal
8384
journalctl --flush

0 commit comments

Comments
 (0)