* [PATCH] doc: sandbox: replace sgdisk input with options
@ 2023-03-24 13:43 Corentin Guillevic
2023-04-02 21:33 ` Simon Glass
0 siblings, 1 reply; 2+ messages in thread
From: Corentin Guillevic @ 2023-03-24 13:43 UTC (permalink / raw)
To: u-boot; +Cc: Corentin Guillevic, Simon Glass
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>
---
doc/arch/sandbox/sandbox.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git doc/arch/sandbox/sandbox.rst doc/arch/sandbox/sandbox.rst
index 34c4e06d9b..4a214aa81c 100644
--- doc/arch/sandbox/sandbox.rst
+++ doc/arch/sandbox/sandbox.rst
@@ -391,7 +391,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
--
2.39.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] doc: sandbox: replace sgdisk input with options
2023-03-24 13:43 [PATCH] doc: sandbox: replace sgdisk input with options Corentin Guillevic
@ 2023-04-02 21:33 ` Simon Glass
0 siblings, 0 replies; 2+ messages in thread
From: Simon Glass @ 2023-04-02 21:33 UTC (permalink / raw)
To: Corentin Guillevic; +Cc: Simon Glass, u-boot
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>
---
doc/arch/sandbox/sandbox.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Applied to u-boot-dm/next, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-02 21:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-24 13:43 [PATCH] doc: sandbox: replace sgdisk input with options Corentin Guillevic
2023-04-02 21:33 ` Simon Glass
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.