mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-09-30 19:33:46 +08:00
Faster time syncing when no internet (#528)
* timesyncd 5s * add it! * add comment
This commit is contained in:
@@ -212,6 +212,9 @@ RUN echo "precedence ::ffff:0:0/96 100" >> /etc/gai.conf
|
||||
# Don't let logind delete /dev/shm
|
||||
COPY ./userspace/files/logind.conf /etc/systemd/logind.conf
|
||||
|
||||
# Retry NTP sync every 10s instead of 30s for faster time sync after network connects
|
||||
COPY ./userspace/files/timesyncd.conf /etc/systemd/timesyncd.conf
|
||||
|
||||
# Copy Avahi daemon override
|
||||
COPY ./userspace/files/avahi-override.conf /etc/systemd/system/avahi-daemon.service.d/override.conf
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
[Time]
|
||||
# 10s is limited by timesyncd rate limit
|
||||
ConnectionRetrySec=10
|
||||
Reference in New Issue
Block a user