[Bug 575458] [NEW] /etc/dhcp3/dhclient-exit-hooks.d/ntp breaks local NTP server (patch)
Dave Smith
dave at thesmithfam.org
Wed May 5 00:13:47 BST 2010
Public bug reported:
Binary package hint: ntp
The dhcp exit hook for ntp removes *all* ntp servers from ntp.conf if
the dhcp server provides a new ntp host. This is generally good, unless
your computer *is* an ntp server. In this case, your ntp server won't
work the next time your computer starts without DHCP.
The following patch fixes the problem by *not* replacing ntp servers
with an address beginning with "127.":
Patch for /etc/dhcp3/dhclient-exit-hooks.d/ntp:
@@ -40,7 +40,7 @@
echo "server $server iburst"
done
echo
- sed -r -e '/^ *(server|peer).*$/d' $NTP_CONF
+ sed -r -e '/^ *(server *[^1][^2][^7]\.|peer).*$/d' $NTP_CONF
) >>$tmp
mv $tmp $NTP_DHCP_CONF
$ lsb_release -rd
Description: Ubuntu 10.04 LTS
Release: 10.04
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: ntp (not installed)
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Tue May 4 17:06:40 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: ntp
** Affects: ntp (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug lucid
--
/etc/dhcp3/dhclient-exit-hooks.d/ntp breaks local NTP server (patch)
https://bugs.launchpad.net/bugs/575458
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to ntp in ubuntu.
More information about the Ubuntu-server-bugs
mailing list