Don't use type unknown for partitions that we don't care about because
the chunk will never be added to the list in that case. Use type mbr for GPT nested MBRs and use type part for any partition we don't know or care about. Since the subtype is 0, this should not cause confusion.
This commit is contained in:
parent
2aa65cf739
commit
7bf298bcad
@ -250,7 +250,7 @@ Int_Open_Disk(const char *name, char *conftxt)
|
||||
else if (uuid_equal(&uuid, &_efi, NULL))
|
||||
chunk.type = efi;
|
||||
else if (uuid_equal(&uuid, &_mbr, NULL))
|
||||
chunk.type = unknown;
|
||||
chunk.type = mbr;
|
||||
else if (uuid_equal(&uuid, &_fbsd, NULL)) {
|
||||
chunk.type = freebsd;
|
||||
chunk.subtype = 0xa5;
|
||||
@ -261,7 +261,7 @@ Int_Open_Disk(const char *name, char *conftxt)
|
||||
chunk.type = part;
|
||||
chunk.subtype = FS_BSDFFS;
|
||||
} else
|
||||
chunk.type = unknown;
|
||||
chunk.type = part;
|
||||
} else
|
||||
abort();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user