touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #62665
[Bug 374896] Re: Servers specified in ntp.conf are not carried into ntp.conf.dhcp
One workaround is to add a tab in front of your server/peer lines.
This prevents the above-quoted regex from matching.
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ntp in Ubuntu.
https://bugs.launchpad.net/bugs/374896
Title:
Servers specified in ntp.conf are not carried into ntp.conf.dhcp
Status in ntp package in Ubuntu:
Triaged
Bug description:
Binary package hint: ntp
By default, ntpd starts up reading /etc/ntp.conf.dhcp; if that file
does not exist, /etc/ntp.conf is read instead. According to
ntp.conf.dhcp, the file is generated based on ntp.conf after any DHCP
event occurs. The problem is that, according to the man page, you may
specify servers in ntp.conf, but the DHCP hook to generate
ntp.conf.dhcp specifically filters out any servers/peers that you
specify in ntp.conf. Here is a patch for /etc/dhcp3/dhclient-exit-
hooks.d/ntp to fix the problem:
=== Beginning of patch ===
*** ntp.old 2009-05-11 09:40:11.000000000 -0400
--- ntp 2009-05-11 09:40:23.000000000 -0400
***************
*** 40,46 ****
echo "server $server iburst"
done
echo
! sed -r -e '/^ *(server|peer).*$/d' $NTP_CONF
) >>$tmp
mv $tmp $NTP_DHCP_CONF
--- 40,46 ----
echo "server $server iburst"
done
echo
! cat $NTP_CONF
) >>$tmp
mv $tmp $NTP_DHCP_CONF
=== End of patch ===
Ubuntu release: 9.04
Package version: 1:4.2.4p4+dfsg-7ubuntu5
Expected behavior: When a DHCP event happens, ntp.conf.dhcp is regenerated including any servers specified in ntp.conf
Actual behavior: When a DHCP event happens, ntp.conf.dhcp is regenerated using only the servers found in the DHCP data, filtering out all server/peer lines from ntp.conf
ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: ntp 1:4.2.4p4+dfsg-7ubuntu5
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_US.UTF-8
LANGUAGE=
SourcePackage: ntp
Uname: Linux 2.6.28-11-generic i686
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/374896/+subscriptions