Package: gptsync
Version: 0.14-2
Severity: important
Tags: patch

gptsync doesn't know abot the "Apple Core Storage" GPT UUID used when a
OSX partition is FileVault2 encrypted. In such cases, using gptsync
can't work because it bails out with the following message:

  Status: GPT partition of type 'Unknown' found, will not touch this disk.

The following patch fixes it:

--- refit-0.14.orig/gptsync/lib.c       2012-11-18 09:26:29.000000000 +0100
+++ refit-0.14/gptsync/lib.c    2012-11-18 09:35:20.009020278 +0100
@@ -134,6 +134,7 @@
     { "\x65\x62\x61\x4C\x00\x6C\xAA\x11\xAA\x11\x00\x30\x65\x43\xEC\xAC", 
0x00, STR("Apple Label"), GPT_KIND_SYSTEM },
     // From Wikipedia
     { "\x6F\x63\x65\x52\x65\x76\xAA\x11\xAA\x11\x00\x30\x65\x43\xEC\xAC", 
0x00, STR("Apple TV Recovery"), GPT_KIND_BASIC_DATA },
+    { "\x72\x6f\x74\x53\x67\x61\xAA\x11\xAA\x11\x00\x30\x65\x43\xEC\xAC", 
0xaf, STR("Apple Core Storage"), GPT_KIND_DATA },
     // From OpenSolaris repository, usr/src/uts/common/sys/efi_partition.h
     { "\x7f\x23\x96\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 
0x00, STR("Solaris Reserved"), GPT_KIND_SYSTEM },
     { "\x45\xCB\x82\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 
0xbf, STR("Solaris Boot"), GPT_KIND_DATA },

Arguably, 0xaf is not the right type for the mbr partition, but it's
probably better than anything else.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.6-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gptsync depends on:
ii  libc6  2.13-36

gptsync recommends no packages.

gptsync suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to