Bug 85710

Summary: RFE: timesyncd: add way how other dhcp implementations (i.e. not networkd) can inform timesyncd about NTP servers
Product: systemd Reporter: Martin Gallant <freedesktop>
Component: generalAssignee: systemd-bugs
Status: NEW --- QA Contact: systemd-bugs
Severity: normal    
Priority: medium CC: freedesktop
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Martin Gallant 2014-10-31 17:54:18 UTC
systemd fails to set up timesyncd.service with the NTP server provided by DHCP.

I just tested this on systemd version 216-3 and 217-3 on Arch x86_64

I was referred here by the Arch Linux folks

Installing NetworkManager does not fix this issue - should a separate bug be filed here as well?

Steps to reproduce:
Pristine base install, rebooted # Use ip link to retrieve interface name
dhcpcd -T enps0s25 # Observe ntp_servers stanza in response
systemctl start dhcpcd@enps0s25
timedatectl set-ntp true # Start NTP client
timedatectl	# Confirm NTP is enabled and in	sync
journalctl -f # Observe NTP on default time*.google.com
Comment 1 Lennart Poettering 2014-11-02 18:03:55 UTC
Well, it does work with networkd's dhcp implementation.

However, there's no standardized way how a generic dhcp implementation like dhcpcd (which you appear to be using) could inform the rest of the system about the NTP servers it learnt.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.