I ran into this too but on Ubuntu and filed [1] before noticing this
Debian bug.

I believe that [2, also attached here] might be a simple yet working
solution. It changes the initscript to use /var/lib/ntp/ntp.conf.dhcp
only if it is newer than /etc/ntp.conf.

This should keep the dhclient hook script working as it always updates
the ntp.conf.dhcp file when a NTP server is advertised via DHCP.

Regards,
Simon


1: https://bugs.launchpad.net/debian/+source/ntp/+bug/1472056
2:
https://bugs.launchpad.net/debian/+source/ntp/+bug/1472056/+attachment/4425385/+files/ntp-dont-use-stale-dhcp-conf.patch
--- /etc/init.d/ntp.orig	2015-07-06 22:21:33.666670136 -0400
+++ /etc/init.d/ntp	2015-07-06 22:55:01.128497327 -0400
@@ -22,7 +22,7 @@
 	. /etc/default/ntp
 fi
 
-if [ -e /var/lib/ntp/ntp.conf.dhcp ]; then
+if [ /var/lib/ntp/ntp.conf.dhcp -nt /etc/ntp.conf ]; then
 	NTPD_OPTS="$NTPD_OPTS -c /var/lib/ntp/ntp.conf.dhcp"
 fi
 

Reply via email to