This may be useful to locate a root partition by the GUID defined in the Discoverable Partitions Specification.
https://www.freedesktop.org/wiki/Specifications/DiscoverablePartitionsSpec/ Endless moved away from using this technique because we have to support non-GPT partition tables in some cases, but this feature may be useful to others in future. Carlo Caione (1): search: Add search by GPT partition type docs/grub.texi | 14 ++++--- grub-core/Makefile.core.def | 5 +++ grub-core/commands/search.c | 69 +++++++++++++++++++++++++++++++- grub-core/commands/search_type.c | 5 +++ grub-core/commands/search_wrap.c | 12 ++++-- grub-core/partmap/gpt.c | 9 +++++ include/grub/gpt_partition.h | 9 ----- include/grub/partition.h | 12 ++++++ include/grub/search.h | 2 + 9 files changed, 118 insertions(+), 19 deletions(-) create mode 100644 grub-core/commands/search_type.c -- 2.17.1 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel