mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-22 02:12:16 +00:00
f93367daae
On Ubuntu 26.04 genimage stops with "dracut[F]: Cannot install a hook (.../97xcat/xcat-online.sh) that does not exist". install.netboot hooks xcat-online.sh into initqueue/online, but mkinitrd_dracut in the Ubuntu genimage copies a fixed file list into 97xcat, and that list does not name xcat-online.sh. The stateless image gets no initrd and no kernel, so nodeset fails and the node never boots. This commit moves the copy into imgutils::stage_dracut_module, with the same file list, so a unit test can call it. The test stages each mode from the source tree and checks that every file the staged install script gives to inst_hook is in the module. It fails on xcat-online.sh. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com> (cherry picked from commit 4155d98dc35a65d5d6721298bf9c2c89428a29fa) Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>