diff options
author | nyan <nyan@FreeBSD.org> | 2002-12-04 15:07:05 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2002-12-04 15:07:05 +0000 |
commit | 3863f249f2b86c3c411f8cf5a17558af9c08e742 (patch) | |
tree | ef2eb08f271a846dcae02ffe8a3fa488d1f82dd0 /usr.sbin/sade | |
parent | 609f476f6114e6c80498bcf8cf05e5ee4145939d (diff) | |
download | FreeBSD-src-3863f249f2b86c3c411f8cf5a17558af9c08e742.zip FreeBSD-src-3863f249f2b86c3c411f8cf5a17558af9c08e742.tar.gz |
Fixed a partition type for pc98 when create or change slices in the fdisk
editor.
Approved by: re (jhb)
Diffstat (limited to 'usr.sbin/sade')
-rw-r--r-- | usr.sbin/sade/disks.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.sbin/sade/disks.c b/usr.sbin/sade/disks.c index c240a09..ec8b49b 100644 --- a/usr.sbin/sade/disks.c +++ b/usr.sbin/sade/disks.c @@ -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; } |