[PATCH v2 4/7] cmd: part: support lookup by UUID

Simon Glass sjg at chromium.org
Sat Apr 11 01:00:48 CEST 2026


On 2026-04-04T15:23:27, Dario Binacchi
<dario.binacchi at amarulasolutions.com> wrote:
> cmd: part: support lookup by UUID
>
> The 'part' command currently allows looking up a partition only by its
> number or name.
>
> Extend the 'number', 'start', and 'size' subcommands to support looking
> up the partition via its UUID. Unlike names, UUIDs guarantee unique
> partition identification, avoiding ambiguity.
>
> The logic is updated to check if the provided string is a valid UUID
> before falling back to a name-based search. The help strings for these
> subcommands are updated accordingly.
>
> Signed-off-by: Dario Binacchi <dario.binacchi at amarulasolutions.com>
>
> cmd/part.c | 12 ++++++++----
>  1 file changed, 8 insertions(+), 4 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list