Bug 1098172
| Summary: | dhclient: remove dependency on initscripts ? | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | abrouwers |
| Component: | dhcp | Assignee: | Jiri Popelka <jpopelka> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 22 | CC: | jpopelka, lnykryn, psimerda, thozza |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | dhcp-4.3.2-11.fc23 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-07-14 17:08:47 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
abrouwers
2014-05-15 12:40:10 UTC
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 |