Map 'boot' to GPT_ENT_TYPE_FREEBSD_BOOT when parsuing UUIDs so that things
like 'gpt add -t boot' work. MFC after: 1 week Submitted by: Niki Denev nike_d of cytexbg.com
This commit is contained in:
parent
9cf15e9671
commit
78111593dd
@ -268,6 +268,13 @@ parse_uuid(const char *s, uuid_t *uuid)
|
||||
return (0);
|
||||
|
||||
switch (*s) {
|
||||
case 'b':
|
||||
if (strcmp(s, "boot") == 0) {
|
||||
uuid_t boot = GPT_ENT_TYPE_FREEBSD_BOOT;
|
||||
*uuid = boot;
|
||||
return (0);
|
||||
}
|
||||
break;
|
||||
case 'e':
|
||||
if (strcmp(s, "efi") == 0) {
|
||||
uuid_t efi = GPT_ENT_TYPE_EFI;
|
||||
|
Loading…
x
Reference in New Issue
Block a user