Displaying 1 result from an estimated 1 matches for "fdisk_part_solaris_old".
2014 Nov 20
0
Bug#745419: Bug#745419: xen-utils-4.1: Pygrub fails to boot from LVM LV when something installed in the volume boot record
...partition offsets
# MBR contains a 16 byte descriptor per partition
@@ -105,6 +106,7 @@
# offset == 0 implies this partition is not enabled
if offset == 0:
+ offzerocount += 1
continue
if type == FDISK_PART_SOLARIS or type == FDISK_PART_SOLARIS_OLD:
@@ -123,6 +125,9 @@
else:
part_offs.append(offset)
+ if offzerocount == 4:
+ # Might be a grub boot sector pretending to be an MBR
+ part_offs.append(0)
return part_offs
class GrubLineEditor(curses.textpad.Textbox):
-------------- next part -------...