Displaying 1 result from an estimated 1 matches for "get_active_partition".
2007 Apr 11
3
[PATCH][RFC] Support GPT (GUID Partition Table)
...d-off-by: Tomohiro Takahashi <takatom@jp.fujitsu.com>
Thanks,
Tomohiro Takahashi.
diff -r 1bde28f762a6 -r 8e08fd1ffa24 tools/pygrub/src/pygrub
--- a/tools/pygrub/src/pygrub   Mon Apr 09 13:40:25 2007 -0600
+++ b/tools/pygrub/src/pygrub   Tue Apr 10 20:30:05 2007 +0900
@@ -58,6 +60,13 @@ def get_active_partition(file):
         # active partition has 0x80 as the first byte
         if struct.unpack("<c", buf[poff:poff+1]) == (''\x80'',):
             return buf[poff:poff+16]
+
+        # type=0xee: GUID partition table
+        # XXX assume the first partition is active
+...