On Fri, Dec 12, 2025 at 1:17 PM Luca Boccassi <[email protected]> wrote: > Yes it is extremely important to ensure the autodiscovered partition > is on the same device as the ESP where the running bootloader was > loaded from. Otherwise bad things can happen - for example, someone > can plug in a usb disk and trick you into booting something that you > never intended to. It's fundamental for autodiscovery not only in EFI > mode, but in userspace later, so please ensure this restriction is > respected.
I would say in UEFI case the best approach is getting the device name via grub_efi_get_loaded_image()->device_handle. I'm just not sure if the XBOOTLDR partition can be used in non-UEFI systems that support BLS (like s390?) and what would be a way to handle those cases as well. _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
