Skip to content

Commit c0da6c0

Browse files
committed
refact: hwclock for rpi
1 parent 77e14fd commit c0da6c0

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎system/Dockerfile.rpi-arm64‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
141141
&& echo "[Journal]\nStorage=persistent\nSystemMaxUse=1G\nRuntimeMaxUse=50M\nCompress=yes\nSeal=yes\nSplitMode=uid\nSyncIntervalSec=5m\nRateLimitInterval=30s\nRateLimitBurst=1000" >/etc/systemd/journald.conf \
142142
&& rm /etc/network/interfaces \
143143
## RPI \
144+
&& rm -f /etc/fake-hwclock.data && ln -sf /data/fake-hwclock.data /etc/fake-hwclock.data \
144145
&& rm -f /usr/lib/systemd/journald.conf.d/70-rpi-volatile-storage.conf
145146

146147

‎system/cuos/do-factory-reset.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ docker system prune -f
1212
sync
1313

1414
echo "Cleaning up @data"
15-
rm /data/* 2>/dev/null
15+
rm -f /data/* 2>/dev/null
1616
for dir in /data/*/; do
1717
if [[ -d "$dir" && "$dir" != "/data/dhcp/" ]]; then
1818
echo "Cleaning inside $dir..."

‎system/cuos/first-run.sh‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,4 @@ if [[ -f "${SCRIPT_DIR}/custom-first-run.sh" ]]; then
2323
source "${SCRIPT_DIR}/custom-first-run.sh"
2424
fi
2525

26-
/usr/sbin/fake-hwclock save force
27-
2826
exit 0

0 commit comments

Comments
 (0)