If the guid specified can't be decoded as a GUID, try looking it up in

the known guid to name table.

Sponsored by: Netflix
This commit is contained in:
Warner Losh 2017-03-03 20:23:18 +00:00
parent 9e4a51a860
commit f2d626ab0e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314621

View File

@ -87,7 +87,7 @@ breakdown_name(char *name, efi_guid_t *guid, char **vname)
errx(1, "Invalid name: %s", name);
*vname = cp + 1;
*cp = '\0';
if (efi_str_to_guid(name, guid) < 0)
if (efi_name_to_guid(name, guid) < 0)
errx(1, "Invalid guid %s", name);
}