NetworkManager/src
Dan Williams 5d6d5cd136 dhclient: copy leasefiles from old location if needed (rh #916233) (bgo #696210)
When the default leasefile location got moved from distro-specific
dhclient locations to a single NM-specific location, that apparently
broke scripts and external tools that depended on the old location,
like dract netbooting.

During a netboot, DHCP is started from the initramfs and gets a
lease, and the leasefile lives in the initramfs.  When the real
system is started, and the rootfs switches from the initramfs to
the actual rootfs, something needs to copy the leasefiles over to
where NetworkManager can find them.  For dracut at least, various
dracut scripts were doing this, and copying to the old location
in /var/lib/dhclient or /var/lib/dhcp.  Which means NM can no
longer find them, and proceeds to acquire a new DHCP lease when
taking over the existing connection, rather than renewing the
existing lease.  This can lead to loss of network connectivity
and thus the netboot process fails.

If no leasefile for the connection in the new location exists,
look in the old locations and copy that leasefile over to the new
location.
2013-03-26 15:26:18 -05:00
..
bluez-manager build: remove G_DISABLE_DEPRECATED 2012-10-31 19:41:07 +01:00
dhcp-manager dhclient: copy leasefiles from old location if needed (rh #916233) (bgo #696210) 2013-03-26 15:26:18 -05:00
dns-manager policy,dns: fix a race in looking up hostname and updating DNS (rh #877084) 2013-02-12 15:40:08 +01:00
dnsmasq-manager all: remove more pointless NULL checks 2013-02-13 13:38:36 -05:00
firewall-manager all: remove redundant return-if-fail checks 2013-03-07 07:32:27 -05:00
generated modem-manager: new `NMModemBroadband' 2012-11-21 11:48:25 -06:00
ip6-manager netlink: don't ref/unref the singleton 2013-03-13 22:15:29 +01:00
logging logging: add BRIDGE log domain 2013-02-04 10:37:46 -06:00
modem-manager mobile: clarifiy modem state change log message 2013-03-25 15:56:06 -05:00
posix-signals build: remove G_DISABLE_DEPRECATED 2012-10-31 19:41:07 +01:00
ppp-manager ppp: ignore errors getting final PPP stats 2013-03-25 15:26:51 -05:00
settings all: use G_VALUE_INIT to initialize GValue variables 2013-03-25 08:41:18 +01:00
supplicant-manager all: use G_VALUE_INIT to initialize GValue variables 2013-03-25 08:41:18 +01:00
tests tests: clean up gtester usage 2013-02-26 13:07:33 +01:00
vpn-manager all: remove more pointless NULL checks 2013-02-13 13:38:36 -05:00
wifi trivial: plug some memory leaks 2013-02-25 16:07:03 +01:00
wimax core: make nm_device_check_connection_compatible() check interface-name 2013-03-13 16:45:19 -04:00
main.c Revert "trivial: remove nm-netlink-monitor.h from main" 2013-03-13 23:52:14 +01:00
Makefile.am trivial: remove unused define 2013-03-07 16:29:03 -06:00
NetworkManagerUtils.c core: allow marking a device unmanaged by its interface name 2013-03-13 16:45:19 -04:00
NetworkManagerUtils.h core: allow marking a device unmanaged by its interface name 2013-03-13 16:45:19 -04:00
nm-activation-request.c core: fix duplicating (not removing) active connections 2013-02-11 11:48:11 -06:00
nm-activation-request.h core: move most activation request logic to the active connection class 2012-12-17 17:01:10 -06:00
nm-active-connection.c core: fix duplicating (not removing) active connections 2013-02-11 11:48:11 -06:00
nm-active-connection.h core: move most activation request logic to the active connection class 2012-12-17 17:01:10 -06:00
nm-call-store.c core: update logging in misc files 2010-04-07 12:28:57 -07:00
nm-call-store.h 2008-11-02 Dan Williams <dcbw@redhat.com> 2008-11-03 04:13:42 +00:00
nm-config.c trivial: remove extra semicolons 2013-03-12 09:32:47 +01:00
nm-config.h config: convert NMConfig to object 2013-03-11 14:43:24 -05:00
nm-connection-provider.c core: move connection provider interface to src/ 2012-05-17 13:21:47 -05:00
nm-connection-provider.h core: move connection provider interface to src/ 2012-05-17 13:21:47 -05:00
nm-connectivity.c core: use Config object for connectivity checking parameters 2013-03-11 14:45:12 -05:00
nm-connectivity.h core: use Config object for connectivity checking parameters 2013-03-11 14:45:12 -05:00
nm-dbus-manager.c core: use #defines for NMDBusManager signal names 2010-12-10 11:36:55 -06:00
nm-dbus-manager.h build: do the right thing with config.h (bgo #644664) 2011-03-14 01:01:22 -05:00
nm-device-adsl.c netlink: don't ref/unref the singleton 2013-03-13 22:15:29 +01:00
nm-device-adsl.h docs: fix a few documentation errors 2012-06-29 11:49:51 +02:00
nm-device-bond.c core: make nm_device_check_connection_compatible() check interface-name 2013-03-13 16:45:19 -04:00
nm-device-bond.h core, libnm-glib: expose "slaves" property on NMDeviceBond 2012-10-19 12:09:27 -04:00
nm-device-bridge.c all: use G_VALUE_INIT to initialize GValue variables 2013-03-25 08:41:18 +01:00
nm-device-bridge.h core,libnm-glib: expose "slaves" property on NMDeviceBridge 2012-11-30 13:21:51 -06:00
nm-device-bt.c core: make nm_device_check_connection_compatible() check interface-name 2013-03-13 16:45:19 -04:00
nm-device-bt.h core: add generic way of getting device hardware addresses 2013-01-24 14:56:38 -06:00
nm-device-ethernet.c core: make nm_device_check_connection_compatible() check interface-name 2013-03-13 16:45:19 -04:00
nm-device-ethernet.h Fix names of error enum values 2012-03-12 15:29:52 -04:00
nm-device-factory.h core: add device factory infrastructure and make WiMAX a plugin 2011-12-02 13:30:08 -06:00
nm-device-infiniband.c core: make nm_device_check_connection_compatible() check interface-name 2013-03-13 16:45:19 -04:00
nm-device-infiniband.h Fix names of error enum values 2012-03-12 15:29:52 -04:00
nm-device-modem.c core: make nm_device_check_connection_compatible() check interface-name 2013-03-13 16:45:19 -04:00
nm-device-modem.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-device-olpc-mesh.c core: make nm_device_check_connection_compatible() check interface-name 2013-03-13 16:45:19 -04:00
nm-device-olpc-mesh.h Fix names of error enum values 2012-03-12 15:29:52 -04:00
nm-device-private.h core: simplify/rename nm_device_connection_match_config() 2013-03-13 13:21:59 -04:00
nm-device-vlan.c netlink: don't ref/unref the singleton 2013-03-13 22:15:29 +01:00
nm-device-vlan.h Fix names of error enum values 2012-03-12 15:29:52 -04:00
nm-device-wifi.c all: use G_VALUE_INIT to initialize GValue variables 2013-03-25 08:41:18 +01:00
nm-device-wifi.h core: add NM_WIFI_DEVICE_CAP_ADHOC 2013-02-11 12:39:28 -05:00
nm-device-wired.c netlink: don't ref/unref the singleton 2013-03-13 22:15:29 +01:00
nm-device-wired.h core: move carrier-detect NMDeviceState handling into NMDevice 2013-02-15 13:40:38 -05:00
nm-device.c core: don't crash checking unmanaged specs if device has no hardware address 2013-03-25 15:17:35 -05:00
nm-device.h core: simplify nm_device_get_best_auto_connection() 2013-03-13 13:21:59 -04:00
nm-dhcp4-config.c dispatcher: pass DHCP options as string:string hash 2011-05-11 16:01:12 -05:00
nm-dhcp4-config.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-dhcp6-config.c dispatcher: pass DHCP options as string:string hash 2011-05-11 16:01:12 -05:00
nm-dhcp6-config.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-dispatcher.c core: fix more GValueArray deprecation fallout 2013-02-27 18:09:52 +01:00
nm-dispatcher.h core: add cancelation to dispatcher calls 2012-09-11 17:17:58 -05:00
nm-hostname-provider.c misc: license fixups 2010-01-21 15:11:50 -08:00
nm-hostname-provider.h misc: license fixups 2010-01-21 15:11:50 -08:00
nm-ip4-config.c trivial: use the constant for NM_IP*_COMPARE_FLAG_ALL 2012-06-12 10:00:03 -05:00
nm-ip4-config.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-ip6-config.c ip6: rename defgw to gateway 2012-06-26 23:50:19 -05:00
nm-ip6-config.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-manager-auth.c core: use nm_connection_get_setting_<type>() whenever possible 2011-12-06 16:06:43 -06:00
nm-manager-auth.h core: add nm_auth_chain_steal_data() 2011-07-01 15:38:38 -05:00
nm-manager.c dbus: reinstall property filter on dbus connection changes (rh #918273) 2013-03-20 08:51:08 -05:00
nm-manager.h core: use Config object for connectivity checking parameters 2013-03-11 14:45:12 -05:00
nm-netlink-monitor.c netlink: don't ref/unref the singleton 2013-03-13 22:15:29 +01:00
nm-netlink-monitor.h cleanup: remove unnecessary headers from nm-netlink-monitor.h 2013-03-06 11:59:07 +01:00
nm-netlink-utils.c netlink: replace libnl 1.x functions 2013-03-05 23:02:42 +01:00
nm-netlink-utils.h netlink: clean up header includes 2013-01-25 00:13:39 +01:00
nm-policy-hosts.c trivial: plug some memory leaks 2013-02-25 16:07:03 +01:00
nm-policy-hosts.h policy: stop touching /etc/hosts 2010-12-17 09:28:49 -06:00
nm-policy.c all: remove redundant return-if-fail checks 2013-03-07 07:32:27 -05:00
nm-policy.h policy: monitor connection activation/deactivation via the manager 2012-12-17 17:01:10 -06:00
nm-properties-changed-signal.c all: use G_VALUE_INIT to initialize GValue variables 2013-03-25 08:41:18 +01:00
nm-properties-changed-signal.h 2008-11-02 Dan Williams <dcbw@redhat.com> 2008-11-03 04:13:42 +00:00
nm-rfkill.h udev: add support for other types of rfkill switches 2009-12-23 01:30:54 -08:00
nm-session-monitor-ck.c build: unify NetworkManager path handling (some paths are changed) 2012-11-05 14:01:47 +01:00
nm-session-monitor-null.c core: fix undefined reference to assert in session-monitor-{systemd, null} 2012-02-09 10:48:20 -06:00
nm-session-monitor-systemd.c core: handle return values from libsystemd-login correctly 2012-08-27 09:55:04 -05:00
nm-session-monitor.h settings: clean up connection visibility and session change handling 2010-10-26 16:33:47 -05:00
nm-session-utils.c Use glib-mkenums to generate enum types 2012-02-15 11:42:15 -05:00
nm-session-utils.h Fix names of error enum values 2012-03-12 15:29:52 -04:00
nm-sleep-monitor-systemd.c core: remove remaining pre-2.32 GLib compat / deprecated usage 2013-02-26 13:07:33 +01:00
nm-sleep-monitor-upower.c core: DBusGConnections are not GObjects 2012-10-14 10:43:54 -05:00
nm-sleep-monitor.h core: factor out the upower suspend/resume code (bgo #677694) 2012-10-13 09:20:00 -05:00
nm-system.c cleanup: remove nm-netlink-compat 2013-03-05 23:02:50 +01:00
nm-system.h core: only manage those bridges created by NetworkManager (rh #905035) 2013-02-04 11:59:15 -06:00
nm-types.h core: add header for NM object types 2012-12-17 17:01:10 -06:00
nm-udev-manager.c all: remove redundant return-if-fail checks 2013-03-07 07:32:27 -05:00
nm-udev-manager.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-wifi-ap-utils.c wifi: support ap-mode with wpa_supplicant 2012-10-17 12:08:11 -05:00
nm-wifi-ap-utils.h wifi: fix scanned signal strength calculation for WEXT-based drivers 2011-03-13 12:50:40 -05:00
nm-wifi-ap.c all: remove redundant return-if-fail checks 2013-03-07 07:32:27 -05:00
nm-wifi-ap.h wifi: support ap-mode with wpa_supplicant 2012-10-17 12:08:11 -05:00
org.freedesktop.NetworkManager.conf dbus: allow talking to the NetworkManager-SSH VPN plugin 2013-03-20 08:28:14 -05:00