summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/config.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2002-11-13 05:39:59 +0000
committermarcel <marcel@FreeBSD.org>2002-11-13 05:39:59 +0000
commitf76e12575fa9a5cbc6ed3efd9dd9c108757bae56 (patch)
treedb653a4aea5ccbee784fe449b0930df930899cd0 /usr.sbin/sysinstall/config.c
parentc02d224c79a209121012072dc916c2d61ce8c1e5 (diff)
downloadFreeBSD-src-f76e12575fa9a5cbc6ed3efd9dd9c108757bae56.zip
FreeBSD-src-f76e12575fa9a5cbc6ed3efd9dd9c108757bae56.tar.gz
Also test for type efi everywhere we currently test for type fat.
With this change there's no a priori difference between EFI and FAT partitions. With this change and the corresponding change to libdisk, we can create EFI partitions, just like regular FAT partitions.
Diffstat (limited to 'usr.sbin/sysinstall/config.c')
-rw-r--r--usr.sbin/sysinstall/config.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/sysinstall/config.c b/usr.sbin/sysinstall/config.c
index 167927a..6536de7 100644
--- a/usr.sbin/sysinstall/config.c
+++ b/usr.sbin/sysinstall/config.c
@@ -113,7 +113,7 @@ mount_point(Chunk *c1)
{
if (c1->type == part && c1->subtype == FS_SWAP)
return "none";
- else if (c1->type == part || c1->type == fat)
+ else if (c1->type == part || c1->type == fat || c1->type == efi)
return ((PartInfo *)c1->private_data)->mountpoint;
return "/bogus";
}
@@ -121,7 +121,7 @@ mount_point(Chunk *c1)
static char *
fstype(Chunk *c1)
{
- if (c1->type == fat)
+ if (c1->type == fat || c1->type == efi)
return "msdosfs";
else if (c1->type == part) {
if (c1->subtype != FS_SWAP)
@@ -151,6 +151,9 @@ fstype_short(Chunk *c1)
else
return "ro";
}
+ else if (c1->type == efi)
+ return "rw";
+
return "bog";
}
@@ -208,7 +211,7 @@ configFstab(dialogMenuItem *self)
chunk_list[nchunks++] = c2;
}
}
- else if (c1->type == fat && c1->private_data)
+ else if ((c1->type == fat || c1->type == efi) && c1->private_data)
chunk_list[nchunks++] = c1;
}
}
OpenPOWER on IntegriCloud