summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2002-12-04 15:07:05 +0000
committernyan <nyan@FreeBSD.org>2002-12-04 15:07:05 +0000
commit3863f249f2b86c3c411f8cf5a17558af9c08e742 (patch)
treeef2eb08f271a846dcae02ffe8a3fa488d1f82dd0
parent609f476f6114e6c80498bcf8cf05e5ee4145939d (diff)
downloadFreeBSD-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)
-rw-r--r--usr.sbin/sade/disks.c8
-rw-r--r--usr.sbin/sysinstall/disks.c8
2 files changed, 16 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;
}
diff --git a/usr.sbin/sysinstall/disks.c b/usr.sbin/sysinstall/disks.c
index c240a09..ec8b49b 100644
--- a/usr.sbin/sysinstall/disks.c
+++ b/usr.sbin/sysinstall/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;
}
OpenPOWER on IntegriCloud