1 diff -dur xen-4.2.0.orig/tools/pygrub/src/pygrub xen-4.2.0/tools/pygrub/src/pygrub
2 --- xen-4.2.0.orig/tools/pygrub/src/pygrub 2012-09-17 12:21:18.000000000 +0200
3 +++ xen-4.2.0/tools/pygrub/src/pygrub 2012-10-22 10:57:09.000000000 +0200
5 fd = os.open(file, os.O_RDONLY)
9 for poff in (446, 462, 478, 494): # partition offsets
11 # MBR contains a 16 byte descriptor per partition
14 # offset == 0 implies this partition is not enabled
19 if type == FDISK_PART_SOLARIS or type == FDISK_PART_SOLARIS_OLD:
22 part_offs.append(offset)
24 + if offzerocount == 4:
25 + # Might be a grub boot sector pretending to be an MBR
29 class GrubLineEditor(curses.textpad.Textbox):