Martin-Éric Racine <[email protected]> (2025-12-25):
> On Thu, 25 Dec 2025 08:10:33 +0100 Cyril Brulebois <[email protected]> wrote:
> > Uncommenting the `option ntp_servers` line in /etc/dhcpcd.conf is
> > sufficient to fix the issue:
> 
> Done.

Thank you.

> > I strongly suggest adjusting the configuration to enable this option,
> > first in unstable, and then in trixie, making sure to coordinate with
> > the release team.
> 
> Agreed.
> 
> This being said, the whole fix requires enabling timesyncd. On my
> personal hosts, I had to manually issue the following:
> 
> sudo timedatectl set-ntp true

That wasn't required on my end.

As mentioned, I already had `NTP service: active` before the change…

Full logs since the installation:

    root@<redacted>:~# journalctl | grep systemd-timesyncd
    systemd[1]: Starting systemd-timesyncd.service - Network Time 
Synchronization...
    systemd[1]: Started systemd-timesyncd.service - Network Time 
Synchronization.
    systemd-timesyncd[379]: Network configuration changed, trying to establish 
connection.
    systemd-timesyncd[379]: Network configuration changed, trying to establish 
connection.
    systemd-timesyncd[379]: Network configuration changed, trying to establish 
connection.
    systemd-timesyncd[379]: Network configuration changed, trying to establish 
connection.
    systemd-timesyncd[379]: Network configuration changed, trying to establish 
connection.
    systemd[1]: Stopping systemd-timesyncd.service - Network Time 
Synchronization...
    systemd[1]: systemd-timesyncd.service: Deactivated successfully.
    systemd[1]: Stopped systemd-timesyncd.service - Network Time 
Synchronization.
    systemd[1]: Starting systemd-timesyncd.service - Network Time 
Synchronization...
    systemd[1]: Started systemd-timesyncd.service - Network Time 
Synchronization.
    systemd-timesyncd[379]: Network configuration changed, trying to establish 
connection.
    systemd-timesyncd[379]: Network configuration changed, trying to establish 
connection.
    systemd-timesyncd[379]: Network configuration changed, trying to establish 
connection.
    systemd-timesyncd[379]: Network configuration changed, trying to establish 
connection.
    systemd-timesyncd[379]: Network configuration changed, trying to establish 
connection.
    systemd[1]: Stopping systemd-timesyncd.service - Network Time 
Synchronization...
    systemd[1]: systemd-timesyncd.service: Deactivated successfully.
    systemd[1]: Stopped systemd-timesyncd.service - Network Time 
Synchronization.
    systemd[1]: Starting systemd-timesyncd.service - Network Time 
Synchronization...
    systemd[1]: Started systemd-timesyncd.service - Network Time 
Synchronization.
    systemd-timesyncd[376]: Network configuration changed, trying to establish 
connection.
    systemd-timesyncd[376]: Network configuration changed, trying to establish 
connection.
    systemd-timesyncd[376]: Network configuration changed, trying to establish 
connection.
    systemd-timesyncd[376]: Network configuration changed, trying to establish 
connection.
    systemd[1]: Stopping systemd-timesyncd.service - Network Time 
Synchronization...
    systemd[1]: systemd-timesyncd.service: Deactivated successfully.
    systemd[1]: Stopped systemd-timesyncd.service - Network Time 
Synchronization.
    systemd[1]: Starting systemd-timesyncd.service - Network Time 
Synchronization...
    systemd[1]: Started systemd-timesyncd.service - Network Time 
Synchronization.
    systemd-timesyncd[369]: Network configuration changed, trying to establish 
connection.
    systemd-timesyncd[369]: Network configuration changed, trying to establish 
connection.
    systemd-timesyncd[369]: Network configuration changed, trying to establish 
connection.
    systemd-timesyncd[369]: Network configuration changed, trying to establish 
connection.
    systemd[1]: Stopping systemd-timesyncd.service - Network Time 
Synchronization...
    systemd[1]: systemd-timesyncd.service: Deactivated successfully.
    systemd[1]: Stopped systemd-timesyncd.service - Network Time 
Synchronization.
    systemd[1]: systemd-timesyncd.service: Consumed 1.241s CPU time, 3.1M 
memory peak.
    systemd[1]: Starting systemd-timesyncd.service - Network Time 
Synchronization...
    systemd[1]: Started systemd-timesyncd.service - Network Time 
Synchronization.
    systemd-timesyncd[210390]: Contacted time server <redacted>:123 
(<redacted>).
    systemd-timesyncd[210390]: Initial clock synchronization to Thu 2025-12-25 
08:32:46.626165 CET.

(I decided to implement a networking.service restart in my playbook
since I didn't know anything about dhcpcd at that point, and since
messages seemed to be flowing from `ifup`…)

> The only serious bug is there, not in dhcpcd. Basically, if timesyncd
> is enabled, it will sync to its default servers once there is a
> network connection. If it's disabled, no amount of having dhcpcd
> request NTP servers will fix that.

As mentioned, that cannot work if network-level restrictions are in
place, making direct connection to default servers impossible.

So, yes, dhcpcd's lack of enabling ntp_servers is solely responsible for
not having NTP support on those systems. Default bookworm installations
using dhclient and its default configuration were dealing with that just
fine. No fiddling with systemd-timesyncd (in either bookworm or trixie)
required, as far as I can see.


Cheers,
-- 
Cyril Brulebois ([email protected])            <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant

Attachment: signature.asc
Description: PGP signature

Reply via email to