Fixed a partition type for pc98 when create or change slices in the fdisk

editor.

Approved by:	re (jhb)
This commit is contained in:
nyan 2002-12-04 15:07:05 +00:00
parent 609f476f61
commit 3863f249f2
2 changed files with 16 additions and 0 deletions

View File

@ -450,7 +450,11 @@ diskPartition(Device *dev)
else if (subtype == SUBTYPE_EFI)
partitiontype = efi;
else
#ifdef PC98
partitiontype = pc98;
#else
partitiontype = mbr;
#endif
Create_Chunk(d, chunk_info[current_chunk]->offset, size, partitiontype, subtype,
(chunk_info[current_chunk]->flags & CHUNK_ALIGN), name);
variable_set2(DISK_PARTITIONED, "yes", 0);
@ -509,7 +513,11 @@ diskPartition(Device *dev)
else if (subtype == SUBTYPE_EFI)
partitiontype = efi;
else
#ifdef PC98
partitiontype = pc98;
#else
partitiontype = mbr;
#endif
chunk_info[current_chunk]->type = partitiontype;
chunk_info[current_chunk]->subtype = subtype;
}

View File

@ -450,7 +450,11 @@ diskPartition(Device *dev)
else if (subtype == SUBTYPE_EFI)
partitiontype = efi;
else
#ifdef PC98
partitiontype = pc98;
#else
partitiontype = mbr;
#endif
Create_Chunk(d, chunk_info[current_chunk]->offset, size, partitiontype, subtype,
(chunk_info[current_chunk]->flags & CHUNK_ALIGN), name);
variable_set2(DISK_PARTITIONED, "yes", 0);
@ -509,7 +513,11 @@ diskPartition(Device *dev)
else if (subtype == SUBTYPE_EFI)
partitiontype = efi;
else
#ifdef PC98
partitiontype = pc98;
#else
partitiontype = mbr;
#endif
chunk_info[current_chunk]->type = partitiontype;
chunk_info[current_chunk]->subtype = subtype;
}