Description of problem: I was investigating which packages on my system still required the 'initscripts' package; as it turns out, dhclient is one of the only remaining ones on my gnome fedora 20 machine. It seems that the package requires it for the dhclient-script, which I guess isn't quite useful for desktop users with eg. network manager. Is it possible to split this out somehow ? It's surely not harmful to keep initscripts around, but it also seems like it should be possible to run without the package.
Good idea, I'll think about it.
Sure, this is a good idea and it is part of my long-term plan.
I can confirm that dhclient script is not needed on Fedora at all unless one wants to run dhclient by hand. On the other hand, AFAIK NetworkManager developers want to remove the dependency on dhclient entirely, which would remove the of a default install on initscript. I see the following reasons dhclient-script depends on initscripts: * /etc/rc.d/init.d/functions * /etc/sysconfig/network-scripts/network-functions I tried to check which functions are actually being used using the following command: # grep -h '^[a-z].*(' /etc/init.d/functions /etc/sysconfig/network-scripts/network-functions | grep -v '^status\>' | sed -r 's/([^ ]*) *\(.*/grep --color \1 \/usr\/sbin\/dhclient-script/' | bash I see the following functions: * need_config * source_config * need_hostname * change_resolv_conf (None of them is from /etc/init.d/functions) The former two are related to reading the /etc/sysconfig/network configuration while the latter two seem to be pretty much self-contained. A couple of solutions came to my mind... 1) Move dhclient-script to the initscripts. This might be a bit too brave. 2) Make dhclient-script work without the respective functions, use them only when available. 3) Copy/reimplement the functions in dhclient-script.
(In reply to Pavel Šimerda (pavlix) from comment #3) > I tried to check which functions are actually being used using the following command: Thanks ! > 3) Copy/reimplement the functions in dhclient-script. This one looks most promising to me. I already wanted to do that with change_resolv_conf() because of bug #1086425 so we might kill two birds with one stone ;)
dhclient-script also uses ipcalc utility from initscripts.
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle. Changing version to '22'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22
Should be resolved with http://pkgs.fedoraproject.org/cgit/dhcp.git/commit/?id=27892ea741e2a7fa82bbba07077fd3606e517c7d