Bug#861769: systemd: systemd-timesyncd does not use NTP server set by DHCP when NetworkManager is installed

Balint Reczey balint.reczey at canonical.com
Wed May 3 23:19:17 BST 2017

Hi Michael,

On Wed, May 3, 2017 at 9:59 PM, Michael Biebl <biebl at debian.org> wrote:
> Hi Balint
> Am 03.05.2017 um 21:42 schrieb Balint Reczey:
>> Package: systemd
>> Version: 232-22
>> Severity: normal
>> Dear Maintainers,
>> When NetworkManager is running /etc/dhcp/dhclient-exit-hooks.d/timesyncd and
>> other hooks in the directory are not triggered. See #537358 for a very
>> old report
>> involving other packages with DHCP hooks.
>> The widely adopted solution seems to be adding per-package scripts to
>> /etc/NetworkManager/dispatcher.d and the attached patch does that for systemd.
> Aside some technical issues with the patch, I have to say I would prefer
> a different approach, see
> https://bugzilla.gnome.org/show_bug.cgi?id=746911

Yes, NM talking natively to systemd-timesyncd would be nice, indeed.
In case in the meantime you would give a shot to using the interface via
dispatcher.d to fix the regression I have updated the patch to basically match
ntp's existing solution.


Balint Reczey
Debian & Ubuntu Developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Set-timesyncd-s-NTP-server-from-DHCP-even-with-Netwo.patch
Type: text/x-patch
Size: 1405 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20170504/a0368654/attachment-0002.bin>

More information about the Pkg-systemd-maintainers mailing list