forked from pool/parted
- Support setting boot flag in pMBR (bnc#872054): - drop: revert-gpt-add-commands-to-manipulate-pMBR-boot-flag.patch - add: libparted-copy-pmbr_boot-when-duplicating-GPT-disk.patch - refresh patches OBS-URL: https://build.opensuse.org/request/show/232154 OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=90
19 lines
599 B
Diff
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
|
|
}
|
|
|