[Bug 105251] Re: NetworkManager wrongly releases DHCP IP
marius at pov.lt
Wed Jul 16 14:22:45 BST 2008
exec >> /tmp/dhcp.debug 2>&1
to the end of /etc/dhcp3/dhclient-exit-hooks.d/debug showed that the
culprit on one system was a whereami script that did 'exit 1'
prematurely, stopping /etc/dhcp3/dhclient-exit-hooks.d/zzzz_dhcdbd from
being run. Here's the relevant line of code:
test ! -e /usr/sbin/whereami && exit 1
'exit 1' is a bad idea when your script is being sourced rather than
dpkg --purge whereami fixed the problem on this system. A proper fix
would be to make the whereami hook not call 'exit'.
Obviously this happens only when you've had whereami installed and then
removed without purging its configuration files.
It might be a good idea to check other packages supplying dhclient hooks
for similar problems.
** Also affects: whereami (Ubuntu)
NetworkManager wrongly releases DHCP IP
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dhcp3 in ubuntu.
More information about the Ubuntu-server-bugs