summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/chunk.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-10-31 01:28:59 +0000
committermarcel <marcel@FreeBSD.org>2004-10-31 01:28:59 +0000
commite0e7753e228f99241dffacc3ea1edcdfeedf7da6 (patch)
tree1ecd0db40f26bdb02f9266011e0bea29042af444 /lib/libdisk/chunk.c
parent17432a99e56e3aac0424524d9bdd13da99487254 (diff)
downloadFreeBSD-src-e0e7753e228f99241dffacc3ea1edcdfeedf7da6.zip
FreeBSD-src-e0e7753e228f99241dffacc3ea1edcdfeedf7da6.tar.gz
Don't barf when we encounter an UUID for GPT partitions. Instead, add
the GPT partition on i386 and adm64 as type=gpt, subtype=0 and with the sname set to the UUID. This prevents sysinstall from bombing out. This also makes sure the GPT partition shows up in sysinstall so as to avoid accidental "clobberage". PR: bin/72896
Diffstat (limited to 'lib/libdisk/chunk.c')
-rw-r--r--lib/libdisk/chunk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libdisk/chunk.c b/lib/libdisk/chunk.c
index ef63ccc..fb43ef5 100644
--- a/lib/libdisk/chunk.c
+++ b/lib/libdisk/chunk.c
@@ -252,6 +252,7 @@ Add_Chunk(struct disk *d, daddr_t offset, daddr_t size, const char *name,
case p_amd64:
switch (type) {
case fat:
+ case gpt:
case mbr:
case extended:
case freebsd:
OpenPOWER on IntegriCloud