summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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