From: Niklas Cassel via buildroot <buildroot@buildroot.org>
To: Brandon Maier <brandon.maier@gmail.com>
Cc: "buildroot@buildroot.org" <buildroot@buildroot.org>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Niklas Cassel <cassel@kernel.org>
Subject: Re: [Buildroot] [PATCH 01/17] docs/manual/writing-rules: add shortcuts for genimage partition-type-uuid
Date: Mon, 11 Nov 2024 13:11:06 +0000 [thread overview]
Message-ID: <ZzICaWfSt7aJ2y1B@ryzen> (raw)
In-Reply-To: <20241109-genimage-partition-type-uuid-v1-1-9f23180c7195@gmail.com>
Hello Brandon,
On Sat, Nov 09, 2024 at 04:16:15PM -0600, Brandon Maier wrote:
> Prefer the use of genimage partition-type-uuid shortcuts over using the
> full GUID. To make shortcuts easier to find, include a link to the full
> list in the genimage source.
>
> Signed-off-by: Brandon Maier <brandon.maier@gmail.com>
> ---
> docs/manual/writing-rules.adoc | 28 +++++++++++++++++-----------
> 1 file changed, 17 insertions(+), 11 deletions(-)
>
> diff --git a/docs/manual/writing-rules.adoc b/docs/manual/writing-rules.adoc
> index 03e4f2c61cfe4820fe6d06d193b9215d423bf4d7..10f25a7011db2f8d4ea7c4acb3ea66c4dcce7a86 100644
> --- a/docs/manual/writing-rules.adoc
> +++ b/docs/manual/writing-rules.adoc
> @@ -198,17 +198,23 @@ image sdimage.img {
> chance, the byte count. In comments instead use +GB+, +MB+, +KB+
> (not +kb+) in place of +G+, +M+, +K+.
>
> -* For GPT partitions, the +partition-type-uuid+ value must be +U+ for
> - the EFI System Partition (expanded to
> - +c12a7328-f81f-11d2-ba4b-00a0c93ec93b+ by _genimage_), +F+ for a FAT
> - partition (expanded to +ebd0a0a2-b9e5-4433-87c0-68b6b72699c7+ by
> - _genimage_) or +L+ for the root filesystem or other filesystems
> - (expanded to +0fc63daf-8483-4772-8e79-3d69d8477de4+ by
> - _genimage_). Even though +L+ is the default value of _genimage_, we
> - prefer to have it explicitly specified in our +genimage.cfg+
> - files. Finally, these shortcuts should be used without double
> - quotes, e.g +partition-type-uuid = U+. If an explicit GUID is
> - specified, lower-case letters should be used.
> +* For GPT partitions, the +partition-type-uuid+ value must use a GUID shortcut
> + if it is supported by genimage. These shortcuts should be used without double
> + quotes, e.g +partition-type-uuid = U+. If an explicit GUID is specified,
> + lower-case letters should be used. Even though the shortcut +L+ is the
> + default value of _genimage_, we prefer to have it explicitly specified in our
> + +genimage.cfg+ files. Some common shortcuts are provided below, for the full
> + list see the +gpt_partition_type_shortcuts+ table in
> + https://github.com/pengutronix/genimage/blob/master/image-hd.c[].
Like you wrote in the cover letter, this series is only partially
implementing Thomas' suggestion, which was:
"My point is that we want *consistency*. So either we use "L" for all
rootfs partitions. Or we use root-${ARCH} for all rootfs partitions."
While this series is just converting GUIDs to use a shortcut, if there is
one available, I still think that we can update the documentation to be
even stricter, something like:
"For the rootfs partition, the partition type GUID should be set to the
architecture-specific shortcut (e.g. root-arm64), rather than the generic
+L+ shortcut (generic Linux rootfs). An explicit partition type GUID should
always be specified for the rootfs partition."
That way we can remove:
"Even though the shortcut +L+ is the default value of _genimage_,
we prefer to have it explicitly specified in our +genimage.cfg+ files."
I don't like this sentence, because it could be interpreted as that
buildroot prefers to have the GUID explicitly specified (rather than
having the shortcut explicitly specified).
Kind regards,
Niklas
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-11-11 13:11 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-09 22:16 [Buildroot] [PATCH 00/17] board: cleanup genimage partition-type-uuid shortcuts Brandon Maier
2024-11-09 22:16 ` [Buildroot] [PATCH 01/17] docs/manual/writing-rules: add shortcuts for genimage partition-type-uuid Brandon Maier
2024-11-11 13:11 ` Niklas Cassel via buildroot [this message]
2024-11-11 14:26 ` Brandon Maier
2024-11-11 14:31 ` Niklas Cassel via buildroot
2024-11-11 21:00 ` Thomas Petazzoni via buildroot
2024-11-12 14:29 ` Brandon Maier
2024-11-09 22:16 ` [Buildroot] [PATCH 02/17] board/beagleboard: use partition-type-uuid "L" Brandon Maier
2024-11-11 20:57 ` Thomas Petazzoni via buildroot
2024-11-09 22:16 ` [Buildroot] [PATCH 03/17] board/sifive: " Brandon Maier
2024-11-09 22:16 ` [Buildroot] [PATCH 04/17] board/visionfive2: " Brandon Maier
2024-11-09 22:16 ` [Buildroot] [PATCH 05/17] board/pc: use partition-type-uuid "root-x86" Brandon Maier
2024-11-11 21:02 ` Thomas Petazzoni via buildroot
2024-11-12 14:02 ` Brandon Maier
2024-11-09 22:16 ` [Buildroot] [PATCH 06/17] support/testing/tests/boot/test_grub: " Brandon Maier
2024-11-11 13:16 ` Niklas Cassel via buildroot
2024-11-11 14:30 ` Brandon Maier
2024-11-09 22:16 ` [Buildroot] [PATCH 07/17] board/mender: use partition-type-uuid "root-x86-64" Brandon Maier
2024-11-09 22:16 ` [Buildroot] [PATCH 08/17] board/radxa: use partition-type-uuid "root-arm" Brandon Maier
2024-11-09 22:16 ` [Buildroot] [PATCH 09/17] board/qemu/arm-ebbr: " Brandon Maier
2024-11-09 22:16 ` [Buildroot] [PATCH 10/17] board/qemu/riscv64-virt-efi: use partition-type-uuid "root-riscv64" Brandon Maier
2024-11-11 13:22 ` Niklas Cassel via buildroot
2024-11-11 14:31 ` Brandon Maier
2024-11-09 22:16 ` [Buildroot] [PATCH 11/17] board/aarch64-efi: use partition-type-uuid "root-arm64" Brandon Maier
2024-11-09 22:16 ` [Buildroot] [PATCH 12/17] board/arm: " Brandon Maier
2024-11-09 22:16 ` [Buildroot] [PATCH 13/17] board/pine64: " Brandon Maier
2024-11-09 22:16 ` [Buildroot] [PATCH 14/17] board/qemu/aarch64-ebbr: " Brandon Maier
2024-11-09 22:16 ` [Buildroot] [PATCH 15/17] board/qemu/aarch64-sbsa: " Brandon Maier
2024-11-09 22:16 ` [Buildroot] [PATCH 16/17] board/visionfive2: use partition-type-uuid "xbootldr" Brandon Maier
2024-11-09 22:16 ` [Buildroot] [PATCH 17/17] support/testing/tests/boot/test_grub: use partition-type-uuid "U" Brandon Maier
2024-11-11 13:34 ` [Buildroot] [PATCH 00/17] board: cleanup genimage partition-type-uuid shortcuts Niklas Cassel via buildroot
2024-11-11 14:37 ` Brandon Maier
2024-11-11 21:12 ` Thomas Petazzoni via buildroot
2024-11-12 14:25 ` Brandon Maier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZzICaWfSt7aJ2y1B@ryzen \
--to=buildroot@buildroot.org \
--cc=Niklas.Cassel@wdc.com \
--cc=brandon.maier@gmail.com \
--cc=cassel@kernel.org \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox