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)
This commit is contained in:
Nathan Whitehorn 2013-09-23 14:18:34 +00:00
parent c58e1e485c
commit 8d795806e9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=255817
2 changed files with 4 additions and 2 deletions

View File

@ -954,7 +954,8 @@ gpart_create(struct gprovider *pp, char *default_type, char *default_size,
}
/* 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",

View File

@ -59,7 +59,8 @@ is_scheme_bootable(const char *part_type) {
return (1);
if (strcmp(platform, "ps3") == 0 && strcmp(part_type, "GPT") == 0)
return (1);
if (strcmp(platform, "chrp") == 0 && strcmp(part_type, "MBR") == 0)
if (strcmp(platform, "chrp") == 0 &&
(strcmp(part_type, "MBR") == 0 || strcmp(part_type, "BSD") == 0))
return (1);
return (0);