-
Dan Williams authored
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.
5d6d5cd1