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: d54e1004b8 ("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>
This commit is contained in:
committed by
Tom Rini
parent
c5afa1fef4
commit
73d5a68fec
+1
-2
@@ -45,8 +45,7 @@ static int print_guid(struct unit_test_state *uts)
|
||||
sprintf(str, "%pUL", guid);
|
||||
ut_asserteq_str("04030201-0605-0807-090A-0B0C0D0E0F10", str);
|
||||
sprintf(str, "%pUs", guid_esp);
|
||||
if (IS_ENABLED(CONFIG_PARTITION_TYPE_GUID) ||
|
||||
IS_ENABLED(CONFIG_CMD_EFIDEBUG) || IS_ENABLED(CONFIG_EFI))
|
||||
if (IS_ENABLED(CONFIG_EFI_PARTITION))
|
||||
ut_asserteq_str("EFI System Partition", str);
|
||||
else
|
||||
ut_asserteq_str("c12a7328-f81f-11d2-ba4b-00a0c93ec93b", str);
|
||||
|
||||
Reference in New Issue
Block a user