Commit 0a242386254066b45a9ab6dbdfa902575402df9b

Authored by Alison Chaiken
Committed by Tom Rini
1 parent 92856b489b

GPT: fix error in partitions string doc

The existing partitions-list parsing in cmd/gpt.c passes a value
from gpt_default() to set_gpt_info() that README.gpt suggests
should begin with 'partitions='.  Partition-list strings should
in fact begin with 'uuid_disk', as otherwise the call from
set_gpt_info() to extract_val() to find 'uuid_disk' will fail.
Change README.gpt accordingly.

Changes since v6: none.

Signed-off-by: Alison Chaiken <alison@peloton-tech.com>

Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff

... ... @@ -156,10 +156,10 @@
156 156 To restore GUID partition table one needs to:
157 157 1. Define partition layout in the environment.
158 158 Format of partitions layout:
159   - "partitions=uuid_disk=...;name=u-boot,size=60MiB,uuid=...;
  159 + "uuid_disk=...;name=u-boot,size=60MiB,uuid=...;
160 160 name=kernel,size=60MiB,uuid=...;"
161 161 or
162   - "partitions=uuid_disk=${uuid_gpt_disk};name=${uboot_name},
  162 + "uuid_disk=${uuid_gpt_disk};name=${uboot_name},
163 163 size=${uboot_size},uuid=${uboot_uuid};"
164 164  
165 165 The fields 'name' and 'size' are mandatory for every partition.
... ... @@ -229,7 +229,7 @@
229 229 If you define 'CONFIG_PARTITION_TYPE_GUID', a optionnal parameter 'type'
230 230 can specify a other partition type guid:
231 231  
232   - "partitions=uuid_disk=...;name=u-boot,size=60MiB,uuid=...;
  232 + "uuid_disk=...;name=u-boot,size=60MiB,uuid=...;
233 233 name=kernel,size=60MiB,uuid=...,
234 234 type=0FC63DAF-8483-4772-8E79-3D69D8477DE4;"
235 235  
... ... @@ -251,7 +251,7 @@
251 251 "lvm" = PARTITION_LINUX_LVM_GUID
252 252 (E6D6D379-F507-44C2-A23C-238F2A3DF928)
253 253  
254   - "partitions=uuid_disk=...;name=u-boot,size=60MiB,uuid=...;
  254 + "uuid_disk=...;name=u-boot,size=60MiB,uuid=...;
255 255 name=kernel,size=60MiB,uuid=...,type=linux;"
256 256  
257 257 They are also used to display the type of partition in "part list" command.