summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdinstall/partedit/gpart_ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bsdinstall/partedit/gpart_ops.c')
-rw-r--r--usr.sbin/bsdinstall/partedit/gpart_ops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bsdinstall/partedit/gpart_ops.c b/usr.sbin/bsdinstall/partedit/gpart_ops.c
index 479365a..289ac98 100644
--- a/usr.sbin/bsdinstall/partedit/gpart_ops.c
+++ b/usr.sbin/bsdinstall/partedit/gpart_ops.c
@@ -954,7 +954,8 @@ addpartform:
}
/* If there isn't one, and we need one, ask */
- if (strcmp(items[2].text, "/") == 0 && bootpart_size(scheme) > 0 &&
+ if ((strcmp(items[0].text, "freebsd") == 0 ||
+ strcmp(items[2].text, "/") == 0) && bootpart_size(scheme) > 0 &&
pp == NULL) {
if (interactive)
choice = dialog_yesno("Boot Partition",
OpenPOWER on IntegriCloud