Skip to content

Commit

Permalink
image-hd: gpt: add type GUID shortcut for barebox-env
Browse files Browse the repository at this point in the history
barebox has been documenting a dedicated GPT partition type GUID for
barebox environment partitions for a while[1] and has started
making actual use of it at runtime in its v2024.03.0 release[2][3].

Add a shorthand to make it easier to use.

[1]: barebox/barebox@ef25a0ce960d
[2]: barebox/barebox@9f868f78bc54
[3]: barebox/barebox@287bd01a6a26

Signed-off-by: Ahmad Fatoum <[email protected]>
  • Loading branch information
a3f committed Apr 3, 2024
1 parent 99ee258 commit 4a4f418
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ Partition options:
* ``V``, ``lvm``: Linux LVM (e6d6d379-f507-44c2-a23c-238f2a3df928)
* ``F``, ``fat32``: FAT32 / Basic Data Partition (ebd0a0a2-b9e5-4433-87c0-68b6b72699c7)
* ``barebox-state``: Barebox State (4778ed65-bf42-45fa-9c5b-287a1dc4aab1)
* ``barebox-env``: Barebox Environment (6c3737f2-07f8-45d1-ad45-15d260aab24d)

Furthermore, for ``{arch}`` being one of ``alpha``,
``arc``, ``arm``, ``arm64``, ``ia64``, ``loongarch64``,
Expand Down
1 change: 1 addition & 0 deletions image-hd.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ static const struct gpt_partition_type_shortcut_t gpt_partition_type_shortcuts[]
{ "F" , "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7" },
{ "fat32" , "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7" },
{ "barebox-state" , "4778ed65-bf42-45fa-9c5b-287a1dc4aab1" },
{ "barebox-env" , "6c3737f2-07f8-45d1-ad45-15d260aab24d" },
/* Discoverable Partitions Specification GUID, see
* https://uapi-group.org/specifications/specs/discoverable_partitions_specification/
*/
Expand Down

0 comments on commit 4a4f418

Please sign in to comment.