mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-20 17:32:15 +00:00
93f27a2674
xcatroot passes the DHCP lease of the initrd to the root image only from /tmp/dhclient.*.lease, which the old dracut network scripts write. An initrd that runs NetworkManager keeps its lease in /var/lib/NetworkManager. The NetworkManager of the root takes over the same connection, finds no lease and starts again with DHCPDISCOVER while the address stays on the interface. A DHCP server that does not answer in time makes NetworkManager-wait-online fail, and when the DHCP timeout expires NetworkManager removes the address from the boot interface. xcatroot now also copies the NetworkManager leases, so the root renews the lease of the initrd with a DHCPREQUEST. Only the stateless xcatroot of dracut_047 changes; statelite and the other dracut modules keep their handoff.