1 --- xen-4.1.0/tools/pygrub/src/pygrub.orig 2010-12-31 15:24:11.000000000 +0000
2 +++ xen-4.1.0/tools/pygrub/src/pygrub 2011-01-30 18:58:17.000000000 +0000
5 fd = os.open(file, os.O_RDONLY)
8 for poff in (446, 462, 478, 494): # partition offsets
10 # MBR contains a 16 byte descriptor per partition
13 # offset == 0 implies this partition is not enabled
18 if type == FDISK_PART_SOLARIS or type == FDISK_PART_SOLARIS_OLD:
21 part_offs.append(offset)
23 + if offzerocount == 4:
24 + # Might be a grub boot sector pretending to be an MBR
28 class GrubLineEditor(curses.textpad.Textbox):