summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/sade/config.c3
-rw-r--r--usr.sbin/sade/install.c6
-rw-r--r--usr.sbin/sysinstall/config.c3
-rw-r--r--usr.sbin/sysinstall/install.c6
4 files changed, 16 insertions, 2 deletions
diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c
index 2e205e1..d055933 100644
--- a/usr.sbin/sade/config.c
+++ b/usr.sbin/sade/config.c
@@ -212,7 +212,8 @@ configFstab(dialogMenuItem *self)
chunk_list[nchunks++] = c2;
}
}
- else if ((c1->type == fat || c1->type == efi) && c1->private_data)
+ else if (((c1->type == fat || c1->type == efi || c1->type == part) &&
+ c1->private_data) || (c1->type == part && c1->subtype == FS_SWAP))
chunk_list[nchunks++] = c1;
}
}
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c
index 3d26689..a45c3bf 100644
--- a/usr.sbin/sade/install.c
+++ b/usr.sbin/sade/install.c
@@ -1036,8 +1036,14 @@ installFilesystems(dialogMenuItem *self)
return DITEM_FAILURE | DITEM_RESTORE;
}
for (c1 = disk->chunks->part; c1; c1 = c1->next) {
+#ifndef __ia64__
if (c1->type == freebsd) {
for (c2 = c1->part; c2; c2 = c2->next) {
+#else
+ if (c1->type == part) {
+ c2 = c1;
+ {
+#endif
if (c2->type == part && c2->subtype != FS_SWAP && c2->private_data) {
PartInfo *tmp = (PartInfo *)c2->private_data;
diff --git a/usr.sbin/sysinstall/config.c b/usr.sbin/sysinstall/config.c
index 2e205e1..d055933 100644
--- a/usr.sbin/sysinstall/config.c
+++ b/usr.sbin/sysinstall/config.c
@@ -212,7 +212,8 @@ configFstab(dialogMenuItem *self)
chunk_list[nchunks++] = c2;
}
}
- else if ((c1->type == fat || c1->type == efi) && c1->private_data)
+ else if (((c1->type == fat || c1->type == efi || c1->type == part) &&
+ c1->private_data) || (c1->type == part && c1->subtype == FS_SWAP))
chunk_list[nchunks++] = c1;
}
}
diff --git a/usr.sbin/sysinstall/install.c b/usr.sbin/sysinstall/install.c
index 3d26689..a45c3bf 100644
--- a/usr.sbin/sysinstall/install.c
+++ b/usr.sbin/sysinstall/install.c
@@ -1036,8 +1036,14 @@ installFilesystems(dialogMenuItem *self)
return DITEM_FAILURE | DITEM_RESTORE;
}
for (c1 = disk->chunks->part; c1; c1 = c1->next) {
+#ifndef __ia64__
if (c1->type == freebsd) {
for (c2 = c1->part; c2; c2 = c2->next) {
+#else
+ if (c1->type == part) {
+ c2 = c1;
+ {
+#endif
if (c2->type == part && c2->subtype != FS_SWAP && c2->private_data) {
PartInfo *tmp = (PartInfo *)c2->private_data;
OpenPOWER on IntegriCloud