Commit Graph

4 Commits

Author SHA1 Message Date
Miroslav Lichvar
ba7e409249 rework NM-dispatcher/dhclient detection
The packaged NM dispatcher and dhclient scripts provide the same
functionality. Only one should be active depending on the system
configuration.

Instead of guessing in the NM dispatcher script whether the dhclient
script is executed, check in the dhclient script whether it is called
from a NM dispatcher script (the 11-dhclient script included in the
dhcp-client package).

This is simpler and it removes dependency on the 11-dhclient script.
2021-04-22 13:21:39 +02:00
Christian Glombek
7f89c4666b update NM DHCP dispatcher script
Updates the patch with downstream changes from
https://github.com/openshift/os/pull/486
and https://github.com/openshift/os/pull/494
2021-02-02 10:46:27 +01:00
Miroslav Lichvar
4578c8d659 move default paths in /var/run to /run 2020-08-26 09:39:23 +02:00
Robert Fairley
9bae83fd80 patch DHCP NM dispatcher for distribution
Patch the upstream example `nm-dispatcher.dhcp` with
Fedora/RHEL-specific behavior including exiting if a dhclient
install is detected, and using the /etc/sysconfig paths.

Originally part of work for fixing integration between the
NetworkManager internal DHCP client and chrony:
https://bugzilla.redhat.com/show_bug.cgi?id=1800901
2020-08-26 09:39:23 +02:00