mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-28 21:32:20 +00:00
0933429e85
On Ubuntu 26.04 a stateless node fetches kernel and initrd and then enters dracut emergency mode. Kea sees no DHCP from the initramfs and httpd sees no request for rootimg.cpio.gz. systemd-network-generator turns BOOTIF= into 70-BOOTIF.network with no DHCP setting. That file exists, so dracut's networkd-config.sh does not install its DHCP default, and the boot NIC stays unconfigured. Also, xcat-cmdline.sh wrote its finished condition to /initqueue-finished and /lib/dracut/hooks, which dracut 110 does not read. With an empty initqueue/finished, dracut-initqueue ends before networkd-run.sh calls the online hook and /sbin/netroot. The module now installs a drop-in that sets DHCP=ipv4 for 70-BOOTIF.network, and xcat-cmdline.sh writes the finished condition to $hookdir/initqueue/finished. ubuntu_netboot_initqueue.bats fails without this change. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com> (cherry picked from commit 29cfd1c0182631e2f91c1a37be7b34860f80742a) Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>