diff options
author | marcel <marcel@FreeBSD.org> | 2007-09-21 16:19:50 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2007-09-21 16:19:50 +0000 |
commit | 876d6af999211941c63831d81fd9ac59593cf60b (patch) | |
tree | 6925a85037c72f815de58c9fefb57b51562c5caa /lib/libdisk | |
parent | 4f7380b1350e60971007ae2e022883e1f4141f60 (diff) | |
download | FreeBSD-src-876d6af999211941c63831d81fd9ac59593cf60b.zip FreeBSD-src-876d6af999211941c63831d81fd9ac59593cf60b.tar.gz |
On PowerPC, geom_part has taken over the partitioning from geom_apple.
Translate partitions of type "PART" to chunks of type "apple" on
PowerPC. This fixes sysinstall.
Approved by: re (kensmith)
Diffstat (limited to 'lib/libdisk')
-rw-r--r-- | lib/libdisk/open_disk.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libdisk/open_disk.c b/lib/libdisk/open_disk.c index 798a72a..5ffae46 100644 --- a/lib/libdisk/open_disk.c +++ b/lib/libdisk/open_disk.c @@ -184,7 +184,8 @@ Int_Open_Disk(const char *name, char *conftxt) b = strsep(&p, " "); o = strtoimax(b, &r, 0); /* APPLE have ty as a string */ - if ((*r) && (strcmp(t, "APPLE") && strcmp(t, "GPT"))) { + if ((*r) && strcmp(t, "APPLE") && + strcmp(t, "GPT") && strcmp(t, "PART")) { printf("libdisk: Int_Open_Disk(%s): can't parse parameter '%s' in line %d (r='%s')\n", name, a, line, r); break; @@ -277,7 +278,11 @@ Int_Open_Disk(const char *name, char *conftxt) i = Add_Chunk(d, off, len, n, gpt, 0, 0, b); else if (!strcmp(t, "APPLE")) i = Add_Chunk(d, off, len, n, apple, 0, 0, sn); - else + else if (!strcmp(t, "PART")) { +#ifdef __powerpc__ + i = Add_Chunk(d, off, len, n, apple, 0, 0, sn); +#endif + } else ; /* Ignore unknown classes. */ } /* PLATFORM POLICY BEGIN ------------------------------------- */ |