parted/libparted-ppc-prepboot-in-syncmbr.patch

19 lines
599 B
Diff

---
libparted/labels/gpt.c | 3 +++
1 file changed, 3 insertions(+)
Index: parted-3.1/libparted/labels/gpt.c
===================================================================
--- parted-3.1.orig/libparted/labels/gpt.c
+++ parted-3.1/libparted/labels/gpt.c
@@ -1183,6 +1183,9 @@ _part_to_ostype (PedPartition* part)
if (strncmp (part->fs_type->name, "hfs", 3) == 0) return 0xaf;
if (strstr (part->fs_type->name, "swap")) return 0x82;
}
+#ifdef __PPC__
+ if (part->num == 1) return 0x41; /* PARTITION_PREP */
+#endif
return 0x83; // Everything else is Linux
}