![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=380982
User jfehlig@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=380982#c20
James Fehlig
Created an attachment (id=221556) --> (https://bugzilla.novell.com/attachment.cgi?id=221556) [details] RPM of yast2-bootloader x86_64
Jason patched a SLES10 SP2 install source with this rpm. I installed a pv domU
from this source and was not able to find the active partition using pygrub.
For reference, here is the function in pygrub that is used to find active
partition
def get_active_partition(file):
"""Find the offset for the start of the first active partition "
"in the disk image file."""
fd = os.open(file, os.O_RDONLY)
buf = os.read(fd, 512)
for poff in (446, 462, 478, 494): # partition offsets
# active partition has 0x80 as the first byte
if struct.unpack("