aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorentin Guillevic <corentin.guillevic@smile.fr>2023-03-24 14:43:36 +0100
committerSimon Glass <sjg@chromium.org>2023-04-03 06:53:53 +1200
commit9599ce514c1801d8fb59f74462138cc92273ff5c (patch)
tree43d52e09884dd129d09cdcba1acdfdfd3cf8f7d5
parentb4fae89c48b9a8c868c5b5f63af2d6737a54621e (diff)
downloadu-boot-9599ce514c1801d8fb59f74462138cc92273ff5c.zip
u-boot-9599ce514c1801d8fb59f74462138cc92273ff5c.tar.gz
u-boot-9599ce514c1801d8fb59f74462138cc92273ff5c.tar.bz2
doc: sandbox: replace sgdisk input with options
The input provided to sgdisk is in fact aimed for sfdisk. The use of sgdisk and sfdisk, coming from different projects, is not the same. So, this commit translates the sfdisk-formatted input into sgdisk-compatible options. Partitions are not modified. Signed-off-by: Corentin Guillevic <corentin.guillevic@smile.fr>
-rw-r--r--doc/arch/sandbox/sandbox.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/arch/sandbox/sandbox.rst b/doc/arch/sandbox/sandbox.rst
index cd7f8a2..77ca6bc 100644
--- a/doc/arch/sandbox/sandbox.rst
+++ b/doc/arch/sandbox/sandbox.rst
@@ -388,7 +388,7 @@ The device can be marked removeable with 'host bind -r'.
A disk image can be created using the following commands::
$> truncate -s 1200M ./disk.raw
- $> echo -e "label: gpt\n,64M,U\n,,L" | /usr/sbin/sgdisk ./disk.raw
+ $> /usr/sbin/sgdisk --new=1:0:+64M --typecode=1:EF00 --new=2:0:0 --typecode=2:8300 disk.raw
$> lodev=`sudo losetup -P -f --show ./disk.raw`
$> sudo mkfs.vfat -n EFI -v ${lodev}p1
$> sudo mkfs.ext4 -L ROOT -v ${lodev}p2