2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-23 10:52:29 +00:00
Files
xcat-core/xCAT-server
Daniel Hilst 57e59f2577 fix(xcat-core): Ubuntu 26.04 diskless node freezes in the initial ramdisk
An Ubuntu 26.04 diskless compute node boots the netboot image and stops at

    systemd[1]: Failed to isolate default target: Unit rescue.service not found.
    systemd[1]: Freezing execution.

1.78 seconds into the kernel, which is the initial ramdisk and not the root
image. imgutils::dracut_netboot_modules returns "xcat nfs base network
kernel-modules" when the image holds no network-legacy module, and dracut
reads that list as the whole module set. dracut-ng, which resolute ships as
dracut 110, has no network-legacy module, so 40network selects
systemd-networkd, which depends on the systemd module. The base module
installs the shell /init only when systemd is out, so /init becomes systemd,
and the list names no systemd-initrd, so there is no initrd.target. systemd
falls back to rescue.target, whose rescue.service is also absent.

Name systemd, systemd-initrd and dracut-systemd as well, each one only when
the image holds it, and only for an image whose dracut has no network-legacy
module. The EL genimage names the same three for dracut 107 on el10. noble
keeps network-legacy and its dracut.conf does not change, so the 24.04 lists
that 9c311c894 gave dracut still build the ramdisk they build today.

xCAT-test/unit/imgutils_dracut_netboot_modules.t fails three of six
assertions without this commit.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-11-07 09:33:43 -03:00
..
2026-10-31 08:55:22 -03:00
2016-07-21 13:27:40 -04:00