Received: from list by lists.gnu.org with archive (Exim 4.71) id 1fVfBm-00064D-8g for mharc-grub-devel@gnu.org; Wed, 20 Jun 2018 11:38:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVfBj-00062s-Rl for grub-devel@gnu.org; Wed, 20 Jun 2018 11:38:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVfBf-00032u-VG for grub-devel@gnu.org; Wed, 20 Jun 2018 11:38:27 -0400 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:50913) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fVfBf-00032V-Lc for grub-devel@gnu.org; Wed, 20 Jun 2018 11:38:23 -0400 Received: by mail-wm0-x229.google.com with SMTP id e16-v6so303936wmd.0 for ; Wed, 20 Jun 2018 08:38:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=zM2NXPltSiUy3frn64mIus0o3uhl5ajifOxGx//zTt4=; b=NjfSOHK7gKoLHtq4AY3oYXJMTqhYPrKZ45bstqH7uwP+miCvHLPwwhHQL6KrICvD6f kG12YXFHoqbrA6/8qZmkJWJnYtyCa5MTXd4/Sz9nEtRto89joj2oPhBHCMcZtWn2llcg 5IK5J/cl4DKYUFdsbOBzLqQOXQAg1kID/n+IC0NraMo9lc/J0g+ZQeXImWdLjH1C6xex Ij21/TjkhNuqaQAd7v5Woy+kTpQ8Q3lncjynjrpwbXtzXr5ce1qTqWCIDtw7jCAGQdft jXipoxmaHybAwOulqVZaxpP+4wbVOgUK+488EocheDlpP8g9/MiDSqgEC9I4/Zw881Ku RlaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=zM2NXPltSiUy3frn64mIus0o3uhl5ajifOxGx//zTt4=; b=LOaA4bi9Hjxs+FOQKRh/N2PZeI99+EIE8hC1PDsJsQ4SnSdWqEE1Mo7bt0+lMb6wKf pU4lUKNqJaOOAOZgG+2e3Hu6zhSka0CTdkoIwvYevR8kF5kuG50O0yolmnZjCk1kO5Zd HkiUA7Ic8l7NaUuB3F5QAJlX7CyEEDIz4gA3QU5a7kJ11M2WcHrjsaTvkoj6QcPCzzB3 a2CKSmWwLG4OBCCXZXod76a1h4esY+Uo6mjfJobMDVq0MbPiOq6/2UsRQc3DbbOoXfT0 k4jJD3pvrEDNlasGw3sUTnmRIYWMfr5xPFO7R7uhwQCNL9enFiwX8ay918j1MvJHKwCi SmHA== X-Gm-Message-State: APt69E3DZbomaJVwT0EznTlq21aYLVu/vhCgKzcIW5dQ3VUxtI2tOsw/ a4o0EZk7ATL+mWBhy3kPKNOsiMSkb/E= X-Google-Smtp-Source: ADUXVKInyDmJrOPa7pfXQACslTpC0I3FsmMGddDBZnq6xVZgKIT8n4E+FymKBGRJQyqg/G/QELbCUw== X-Received: by 2002:a1c:8b52:: with SMTP id n79-v6mr2131382wmd.148.1529509102019; Wed, 20 Jun 2018 08:38:22 -0700 (PDT) Received: from localhost.localdomain ([217.138.93.36]) by smtp.gmail.com with ESMTPSA id b16-v6sm3950321wrm.15.2018.06.20.08.38.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Jun 2018 08:38:21 -0700 (PDT) From: Will Thompson To: grub-devel , linux@endlessm.com Cc: Will Thompson Subject: [PATCH 0/1] search: Add search by GPT partition type Date: Wed, 20 Jun 2018 16:38:07 +0100 Message-Id: <20180620153808.6543-1-wjt@endlessm.com> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::229 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jun 2018 15:38:29 -0000 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