From: "Trevor Woerner" <twoerner@gmail.com>
To: yocto-patches@lists.yoctoproject.org
Subject: Re: [meta-rockchip][PATCH] wic: add GPT partition names to partitions
Date: Mon, 22 Apr 2024 09:18:58 -0400 [thread overview]
Message-ID: <20240422131858.GA12473@localhost> (raw)
In-Reply-To: <20240418220431.31286-1-twoerner@gmail.com>
On Thu 2024-04-18 @ 06:04:31 PM, Trevor Woerner wrote:
> A filesystem label (/dev/disk/by-label) is a property of, and stored in, the
> filesystem itself. Partitions that are not destined to hold filesystems are
> not formatted, therefore it is not possible to assign filesystem labels to
> such partitions.
>
> However, if GPT partitioning is being used, GPT supports the notion of
> assigning labels/names to the partitions which are stored as part of the GPT
> partition table itself (instead of being stored in the filesystem in the
> partition). The naming is a bit confusing (different tools use different
> names) but `wic` calls this "--part-name", `lsblk` calls this "PARTLABEL", and
> `parted` calls this "name".
>
> In Linux user-space these partition labels are referenced via
> /dev/disk/by-partlabel and provide an excellent way of finding these GPT
> partitions regardless of which backing device is actually being used (e.g.
> mmcblk0, mmcblk1... i.e. emmc, sdcard...).
>
> An example where this would be handy is for interacting with a stored U-Boot
> environment. Another potential use would be to use one of the unused raw
> partitions to store information such as MAC addresses, serial numbers, etc.
> which could be set/updated "at the factory" as images are flashed.
>
> Tested with both systemd and sysvinit on both rock-pi-e and rock-pi-s.
>
> Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> ---
> wic/rockchip.wks | 18 +++++++++---------
> 1 file changed, 9 insertions(+), 9 deletions(-)
Applied to meta-rockchip, master branch.
prev parent reply other threads:[~2024-04-22 13:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-18 22:04 [meta-rockchip][PATCH] wic: add GPT partition names to partitions Trevor Woerner
2024-04-22 9:15 ` [yocto-patches] " Quentin Schulz
2024-04-22 13:18 ` Trevor Woerner [this message]
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=20240422131858.GA12473@localhost \
--to=twoerner@gmail.com \
--cc=yocto-patches@lists.yoctoproject.org \
/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 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.