Red Hat Bugzilla – Bug 495361
dhclient postinstall scriptlet nukes my scripts
Last modified: 2009-04-13 21:03:56 EDT
Description of problem:
this scriptlet, in all its greatness, renames dhclient-exit-hooks and dhclient-enter-hooks (and also other unrelated files!) so on next reboot network is not working because firewall etc. scripts are not being executed.
/sbin/dhclient-script can not find them because they are renamed to *.rpmsave and it still tries to find them at /etc !
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. update dhclient+dhcp+... to rename my scripts
my scripts being intact
What scripts and configuration files did you have in place for dhcp prior to upgrading to the new package? Did this occur on a Fedora 10 system upgrading to rawhide?
I don't remember what was the previous dhcp version, some 4.0.0, but how is that relevant? "System" is also not 100% "Fedora 10", either--for example, I have not installed all of the packages, for example I have not installed the menstruation calendar program, and I have syck program from Ferora 9! Did that answer your question?
(In reply to comment #2)
> I don't remember what was the previous dhcp version, some 4.0.0, but how is
> that relevant? "System" is also not 100% "Fedora 10", either--for example, I
> have not installed all of the packages, for example I have not installed the
> menstruation calendar program, and I have syck program from Ferora 9! Did that
> answer your question?
I cannot fix the problem you are seeing unless I know what you are upgrading _from_. In that respect, I view the question as relevant.
You are using Fedora 10 and its dhcp package? And you have the following files for dhclient:
Is this correct?
yes, I have dhcp + dhclient 4.1.0-14 , I had those three files you mentioned before upgrading to 4.1.0-14.
After this upgrade I restored /etc/dhclient-enter-hooks and /etc/dhclient-exit-hooks so that I could get networking working. /etc/dhclient.conf was moved to /etc/dhcp directory and /etc/dhclient.conf does not exist now.
A couple of problems here, the first being that /sbin/dhclient-script isn't looking in /etc/dhcp for everything. Fixed that.
The second are the %post scripts in the spec file. I've modified them to do the following:
1) If you have a file in /etc that should belong in /etc/dhcp and it doesn't exist in /etc/dhcp, create a soft link to the copy in /etc.
2) Do nothing with dhc*rpmsave files.
I've done some test installs here locally with all possible dhclient hooks scripts and config files and things seem to be working fine.
Thanks for the report. The new dhcp packages have the version 4.1.0-16.fc11.