Bug 85710 - RFE: timesyncd: add way how other dhcp implementations (i.e. not networkd) can inform timesyncd about NTP servers
Summary: RFE: timesyncd: add way how other dhcp implementations (i.e. not networkd) ca...
Status: NEW
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-31 17:54 UTC by Martin Gallant
Modified: 2014-12-08 23:39 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.