On Fri, 12 Dec 2025 at 09:01, Radoslav Kolev <[email protected]> wrote:
>
> The default ESP partition on some systems is limited in
> space and storing a number of kernel and initrd images
> can fill it up quickly.
>
> It's not always practical to increase the size of the
> existing ESP, so the Boot Loader Spec defines a new Extended
> Boot Loader Partition (XBOOTLDR) with GPT type GUID of
> bc13c2ff-59e6-4262-a352-b275fd6f7172 to be searched for BLS
> enties and UKIs in addition to the ESP.
>
> Currently searching for this partition is based on the $root
> variable, but the spec requires for this partition to be on the same
> device as the ESP. In many cases that would be the case for $root, but
> there may be exceptions. After looking into it a bit I'm thinking it may be
> better in this case to select the device to search based on $cmdpath instead
> Please let me know your oppinion on this.

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. Thanks

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to