diff options
author | Tom Fitzhenry <tom@tom-fitzhenry.me.uk> | 2023-10-24 22:59:06 +1100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-10-27 16:01:47 -0400 |
commit | 4416a9c7692e5bd9838e4d6149619dd787257cfb (patch) | |
tree | 5729cb5f0183ebbbcea9499507d6d2be1a051536 /doc/usage/cmd | |
parent | 63507f9f1f8b3506e21fec78a6cd8d99fe8de2a2 (diff) |
doc: gpt: fix example of echoing variable
Fixes: 44c5d7764bf4 ("doc: Add gpt command documentation")
Signed-off-by: Tom Fitzhenry <tom@tom-fitzhenry.me.uk>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'doc/usage/cmd')
-rw-r--r-- | doc/usage/cmd/gpt.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/usage/cmd/gpt.rst b/doc/usage/cmd/gpt.rst index f6115ecb0e..cbbe44ab58 100644 --- a/doc/usage/cmd/gpt.rst +++ b/doc/usage/cmd/gpt.rst @@ -156,6 +156,7 @@ read', 'gpt swap' and 'gpt rename', you must specify CONFIG_CMD_GPT_RENAME=y. Examples ~~~~~~~~ + Create 6 partitions on a disk:: => setenv gpt_parts 'uuid_disk=bec9fc2a-86c1-483d-8a0e-0109732277d7; @@ -192,10 +193,9 @@ Get the information about the partition named 'rootfs':: Get the list of partition names on the disk:: => gpt enumerate - => echo gpt_partition_list + => echo ${gpt_partition_list} boot rootfs system-data [ext] user modules ramdisk - Get the GUID for a disk:: => gpt guid mmc 0 @@ -209,6 +209,7 @@ Set the bootable flag for the 'boot' partition and clear it for all others:: => gpt set-bootable mmc 0 boot Swap the order of the 'boot' and 'rootfs' partition table entries:: + => gpt setenv mmc 0 rootfs => echo ${gpt_partition_entry} 2 |