lib/uuid.c: restore support of system partition type for ESP
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Mon, 16 Jun 2025 11:27:47 +0000 (13:27 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 17 Jun 2025 23:21:35 +0000 (17:21 -0600)
commit73d5a68fec9e68b2278d83625d6f8bbfcb33e2d5
tree29d6d63bf513c3b5d06a760c7a2668355651912e
parentc5afa1fef49f55146e78d6157470520391c40eca
lib/uuid.c: restore support of system partition type for ESP

Add support of optional shortname for parameter 'type' of gpt
command (limited by UUID_STR_LEN) and a separate 'description'
for UID format "%pUs" used in 'part list' output.

When 'description' is absent in list_guid[], the optional
shortname is used as fallback.

Many partition types for EFI have no shortcut yet, but only
description as they are only used to display information.

This patch also restores the "system" as short name for EFI
System Partition (ESP).

Fixes: d54e1004b8b1 ("lib/uuid.c: use unique name for PARTITION_SYSTEM_GUID")
Tested-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
lib/uuid.c
test/common/print.c