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:
John Baldwin 2008-01-30 13:29:10 +00:00
parent 9cf15e9671
commit 78111593dd

View File

@ -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;