The Fedora 44 change to make aarch64 live isos just work on WoA laptops:
https://fedoraproject.org/wiki/Changes/Automatic_DTB_selection_for_aarch64_EFI_systems
uses the auto DTB selection build into the systemd-stub. The modified
kernel image is in essence an incomplete UKI containing just a UKI
boot-stub and the DTBs, but not an initrd nor a kernel commandline.
The host generated initrd and host specific commandline will still be
supplied by GRUB as usual, including allowing the user to make changes
to the commandline through GRUB.
Currently Fedora's grub fails to boot the UKI-light kernel images used
for this change.
This is caused by a set of Fedora downstream GRUB changes which replace
calling EFI boot services load_image + start_image with code to manually
load the PE binary and jump to the entry point.
This change adds 8 (partial) reverts, reverting to the grub mainline code
for starting EFI PE binaries on aarch64. Note the code changes only
influence aarch64, which is why some of the reverts are partial since some
of the code is also used on i386/x86_64 builds.
On top of these reverts there are 2 bugfixes and a commit disabling most of
the generic grub-core/loader/efi/linux.c code on i386/x86_64 since that is
unused on i386/x86_64.
Signed-off-by: Hans de Goede <johannes.goede@oss.qualcomm.com>