On Wed, Nov 8, 2017 at 2:47 AM Otavio Salvador < otavio.salva...@ossystems.com.br> wrote:
> On Tue, Nov 7, 2017 at 10:43 PM, your name <yurov...@gmail.com> wrote: > > From: Andrey Yurovsky <yurov...@gmail.com> > > > > It is useful to be able to retrieve a partition UUID or number given > > the partition label, for instance some systems use the partition label > > to indicate the purpose of the partition (such as "rootfs0" being the > > 0th root file system in an A/B image scheme). > > > > Add "gpt part-uuid" to retrieve the partition UUID for a given label and > > "gpt part-num" to retrieve the partition number for a given label along > > with some documentation. > > > > Signed-off-by: Andrey Yurovsky <yurov...@gmail.com> > > Why not use the 'part' cmd? it provides it. > The use case is, given a label, find the UUID and/or the partition number. I see that 'part' can give me the UUID if I knew the partition number, it can print the whole table (but I don't think I can use that output cleanly), and it can list the partition numbers. I don't think I can solve my problem with 'part' as-is unless I have missed something. If that's the case would it be alright to add these subcommands to 'part'? Thank you again, -Andrey _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot