Red Hat Bugzilla – Bug 274761
dhclient-script destroys NTPD configuration
Last modified: 2007-11-30 17:12:14 EST
Description of problem:
On some of the networks I connect my laptop to, the DHCP server provides an NTP
server address. On others it doesn't. When an NTP server is provided,
dhclient-script erases the servers I've configured manually from ntp.conf. The
old configuration is stored in ntp.conf.predhclient and is meant to be restored
when disconnecting, but this approach is inherently unreliable. The restoration
might not happen because DHclient gets killed or Linux crashes or for any number
of other reasons. The next time I connect, dhclient-script copies its own
version of ntp.conf to ntp.conf.predhclient, overwriting the last trace of the
manually configured servers. Then when I connect to a network without a
DHCP-provided NTP server, I suddenly have no reachable NTP server at all.
Version-Release number of selected component (if applicable):
dhclient-script should add and remove only DHCP-provided NTP servers and leave
the manually configured ones in place. The attached patch makes it so.
Created attachment 184921 [details]
makes dhclient-script manage its own lines and leave others alone
Please submit the patch in unified diff format (diff -u). Thanks.
Created attachment 185151 [details]
makes dhclient-script manage its own lines and leave others alone â€“ unified diff
I've patched dhclient-script in Fedora 7 and rawhide. An updates package is
available in the updates testing collection for F-7 now.
dhcp-3.0.5-39.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report.
dhcp-3.0.5-39.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report.