/etc/dhcp3/dhclient-exit-hooks.d/ntp breaks local NTP server (patch)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ntp (Ubuntu) |
Won't Fix
|
Medium
|
Unassigned | ||
Bug Description
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/
@@ -40,7 +40,7 @@
echo "server $server iburst"
done
echo
- sed -r -e '/^ *(server|
+ sed -r -e '/^ *(server *[^1][^
) >>$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)
ProcVersionSign
Uname: Linux 2.6.32-21-generic x86_64
NonfreeKernelMo
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
Thanks this will be fixed in maverick and possibly backported to lucid.
REgards
chuck