zfsbootmenu icon indicating copy to clipboard operation
zfsbootmenu copied to clipboard

Update generate-zbm

Open derzahla opened this issue 3 years ago • 3 comments

add aarch64 stub locations

derzahla avatar Jun 01 '22 01:06 derzahla

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?

zdykstra avatar Jun 01 '22 16:06 zdykstra

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.

ahesford avatar Jun 02 '22 13:06 ahesford

Maybe no need for the gummiboot path then. I only have /usr/lib/systemd/boot/efi/linuxaa64.efi.stub on Asahi.

derzahla avatar Jun 02 '22 15:06 derzahla