mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-24 00:34:02 +00:00
test(xcat-core): nodeset refuses an Ubuntu POWER live image it can boot
reg_linux_diskfull_installation_flat fails on every ppc64le cell of xcat-core-devel-ubuntu-cd. nodeset stops before it writes a grub2 entry (build #119, ubuntu-24-ppc64le-devel): xcat25-cn: The network boot initrd.gz is not found in /install/ubuntu24.04.4/ppc64el/install/netboot. The Ubuntu ppc64el live-server ISO carries no netboot tree. It keeps the installer kernel and initrd under casper: 22.04 and 24.04 ship hwe-vmlinux and hwe-initrd beside vmlinux and initrd, 26.04 ships the release pair only. %INSTALL_BOOT_FILES describes that layout for x86 and not for POWER, and mkinstall carries a second, POWER-only precondition on install/netboot/initrd.gz that no live image satisfies. The new cases resolve the POWER casper layouts, and ask a single routine whether media is bootable. They fail now. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
This commit is contained in:
@@ -103,6 +103,58 @@ is(
|
||||
'riscv64 does not accept the kernel name the other live images use',
|
||||
);
|
||||
|
||||
# The Ubuntu ppc64el live-server ISO carries no netboot tree at all. 22.04 and 24.04 ship
|
||||
# casper/hwe-vmlinux + casper/hwe-initrd beside casper/vmlinux + casper/initrd; 26.04 ships
|
||||
# the release pair only. Without these entries nodeset stops the diskful install with
|
||||
# "The network boot initrd.gz is not found in <pkgdir>/install/netboot".
|
||||
is(
|
||||
resolved('ppc64le', 'ppc64el', media('casper/vmlinux', 'casper/initrd')),
|
||||
'casper/vmlinux|casper/initrd',
|
||||
'the POWER live image keeps its kernel under casper',
|
||||
);
|
||||
is(
|
||||
resolved('ppc64le', 'ppc64el',
|
||||
media('casper/hwe-vmlinux', 'casper/hwe-initrd', 'casper/vmlinux', 'casper/initrd')),
|
||||
'casper/hwe-vmlinux|casper/hwe-initrd',
|
||||
'the POWER hardware-enablement kernel wins over the release kernel',
|
||||
);
|
||||
is(
|
||||
resolved('ppc64le', 'ppc64el',
|
||||
media('install/netboot/ubuntu-installer/ppc64el/vmlinux',
|
||||
'install/netboot/ubuntu-installer/ppc64el/initrd.gz',
|
||||
'casper/vmlinux', 'casper/initrd')),
|
||||
'install/netboot/ubuntu-installer/ppc64el/vmlinux|install/netboot/ubuntu-installer/ppc64el/initrd.gz',
|
||||
'a POWER netboot tree still wins over a live image on the same media',
|
||||
);
|
||||
|
||||
# mkinstall refused POWER media that carried no install/netboot/initrd.gz, whatever
|
||||
# install_boot_files could resolve. One routine answers the question now.
|
||||
can_ok('xCAT_plugin::debian', 'install_media_is_bootable');
|
||||
is(
|
||||
xCAT_plugin::debian::install_media_is_bootable('ppc64le', 'ppc64el',
|
||||
media('casper/vmlinux', 'casper/initrd')),
|
||||
1,
|
||||
'a POWER live image is bootable media',
|
||||
);
|
||||
is(
|
||||
xCAT_plugin::debian::install_media_is_bootable('ppc64le', 'ppc64el',
|
||||
media('install/netboot/ubuntu-installer/ppc64el/vmlinux',
|
||||
'install/netboot/ubuntu-installer/ppc64el/initrd.gz')),
|
||||
1,
|
||||
'a POWER netboot tree is bootable media',
|
||||
);
|
||||
is(
|
||||
xCAT_plugin::debian::install_media_is_bootable('ppc64le', 'ppc64el', media('README')),
|
||||
0,
|
||||
'media with no installer is not bootable media',
|
||||
);
|
||||
is(
|
||||
xCAT_plugin::debian::install_media_is_bootable('x86_64', 'amd64',
|
||||
media('casper/vmlinuz', 'casper/initrd')),
|
||||
1,
|
||||
'an x86 live image is bootable media',
|
||||
);
|
||||
|
||||
# --- nothing to boot -------------------------------------------------------
|
||||
is(resolved('x86_64', 'amd64', media('casper/vmlinuz')), undef,
|
||||
'a kernel without its initrd is not a match');
|
||||
|
||||
Reference in New Issue
Block a user