[PATCH] cmd: part: Add partition-related type command
Tom Rini
trini at konsulko.com
Wed Jul 27 16:06:31 CEST 2022
On Wed, Jul 27, 2022 at 03:35:34PM +0200, Enric Balletbo i Serra wrote:
> This implements the following command:
>
> part type mmc 0:1
> -> print partittion type UUID
> part type mmc 0:1 uuid
> -> set environment variable to partition type UUID
>
> "part type" can be useful when writing a bootcmd which searches for a
> specific partition type to enable automatic discovery of partitions and
> their intended usage or mount point.
>
> Signed-off-by: Enric Balletbo i Serra <eballetbo at redhat.com>
> ---
>
> cmd/part.c | 29 +++++++++++++++++++++++++++++
> 1 file changed, 29 insertions(+)
Seems reasonable. Please update some of the existing tests (I don't
know if test/py/tests/test_gpt.py or test/py/tests/test_part.py or
perhaps both would be easier) for v2.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220727/4c45a700/attachment.sig>
More information about the U-Boot
mailing list