Skip to content

initscript: switch from busybox's ntpd to u-root's ntpdate

Martin Roukala requested to merge ntp_fix into main

When the difference between the NTP server and the local time is too great, busybox's ntpd can take a longer than expected to synchronize the clocks as it tries to slowly drift them towards the correct time.

In our case, this is not needed since this is literally one of the first things we do, and thus can just jump to whatever time the NTP server says is the current one. Fortunately, this is what u-root's ntpdate command does.

Switching to ntpdate increases the bb binary by 0.2%, so the impact should be minimal.

Closes: #24 (closed)

Merge request reports