2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-28 21:32:20 +00:00
Files
xcat-core/xCAT-server
Daniel Hilst 0933429e85 fix(xcat-core): the Ubuntu 26.04 netboot initramfs never gets a lease
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>
2026-11-12 23:42:48 -03:00
..
2026-10-31 08:55:22 -03:00
2016-07-21 13:27:40 -04:00