summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdinstall/partedit/gpart_ops.c
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2013-09-23 14:18:34 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2013-09-23 14:18:34 +0000
commit23d9cd5eff5ee7d7588bd950e305cacab59ce40d (patch)
treeb356fbb171c0392f3be0681a118ee7002978451d /usr.sbin/bsdinstall/partedit/gpart_ops.c
parent185dc91bf29b66981dcb68f679ed3f2d50c7a69e (diff)
downloadFreeBSD-src-23d9cd5eff5ee7d7588bd950e305cacab59ce40d.zip
FreeBSD-src-23d9cd5eff5ee7d7588bd950e305cacab59ce40d.tar.gz
Add installer support for CHRP/PAPR PowerPC systems that use MBR+BSD
formatting, like x86, but with an additional MBR slice containing a raw boot partition. Approved by: re (gjb)
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