grub2_kernel_commands read the image and not the architecture, so a ppc node
whose grub2 image carries linuxefi was given it. linuxefi loads an EFI binary
and a ppc loader is not one. The previous commit removed the architecture test
along with the defect it carried.
The command now needs both: the architecture whose loader is an EFI binary, and
an image that carries the command.
grub2_netboot_protocol.t covers the three architectures and caught this. Its
loader fixture now records the commands it carries, because the configuration
follows the image.
Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
grub2.pm chooses the kernel command from the architecture of the node, so every
x86 node is given linuxefi and initrdefi. Those two come from a downstream patch
and an image built from upstream grub carries neither.
These assertions fail without the fix that follows: the upstream image, the
missing image and the undefined image are all answered with linuxefi.
Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>