Update generate-zbm
add aarch64 stub locations
Does /usr/lib/gummiboot/linuxaa64.efi.stub exist in the wild anywhere? On Void, we only provide a stub for x86_64 systems. Since most distributions use the systemd stub (formerly Gummiboot), I'm not sure we'll ever come across a gummiboot/linuxaa64.efi.stub. Can you shed some light on that, since you're coming from an aarch64 system?
If the aarch64 stub can actually boot, it would be good to support a default stub location for it. (At the moment, this can be accomplished by forcing the value of EFI.Stub in the ZBM config to wherever you need.) However, doing this right means determining the arch on which generate-zbm is running and using that to determine what the default stub name should be. Also, if "cross compilation" works here, a command-line argument to set the arch rather than scraping uname could be added.
Maybe no need for the gummiboot path then. I only have /usr/lib/systemd/boot/efi/linuxaa64.efi.stub on Asahi.