[Bug 380982] New: pygrub cannot boot kernel
https://bugzilla.novell.com/show_bug.cgi?id=380982 User jfehlig@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380982#c372715 Summary: pygrub cannot boot kernel Product: openSUSE 11.0 Version: Alpha 3plus Platform: i686 OS/Version: Other Status: NEW Severity: Enhancement Priority: P5 - None Component: Installation AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jfehlig@novell.com QAContact: jsrain@novell.com CC: cgriffin@novell.com, lbendixs@novell.com, ijc@hellion.org.uk Depends on: 372715 Found By: --- +++ This bug was initially created as a clone of Bug #372715 +++ pygrub is a bootloader run within the control domain to boot paravirtualised guests. It is part of the xen-tools package. After installation of a SLES10 SP2 beta paravirtualised guest, pygrub is unable to boot it. The reason for this is that the kernel and initrd are put on the 2nd partition by the installer, but the installer does not mark this partition as "active". Since no partition is marked as active, on the next boot pygrub assumes that the kernel and ramdisk are in the first partition. Unfortunately, by default SLES10 SP2 uses that partition for swap space. The fix is for the installer to mark the partition containing the kernel and ramdisk as active. It can do this by writing 0x80 to an offset within the MBR. For partition 1 that offset is 446, for partition 2 it is 462, for partition 3 it is 478, and for partition 4 it is 494. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380982
User jfehlig@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=380982#c1
James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=380982
Cyril Hrubis
https://bugzilla.novell.com/show_bug.cgi?id=380982
User jfehlig@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=380982#c2
James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=380982
User aschnell@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=380982#c6
Arvin Schnell
https://bugzilla.novell.com/show_bug.cgi?id=380982
User juhliarik@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=380982#c7
Jozef Uhliarik
https://bugzilla.novell.com/show_bug.cgi?id=380982
Stanislav Visnovsky
https://bugzilla.novell.com/show_bug.cgi?id=380982
User juhliarik@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=380982#c13
--- Comment #13 from Jozef Uhliarik
https://bugzilla.novell.com/show_bug.cgi?id=380982
User juhliarik@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=380982#c14
--- Comment #14 from Jozef Uhliarik
https://bugzilla.novell.com/show_bug.cgi?id=380982
User juhliarik@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=380982#c15
--- Comment #15 from Jozef Uhliarik
https://bugzilla.novell.com/show_bug.cgi?id=380982
User juhliarik@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=380982#c16
--- Comment #16 from Jozef Uhliarik
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("
https://bugzilla.novell.com/show_bug.cgi?id=380982
User jfehlig@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=380982#c21
--- Comment #21 from James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=380982
User jfehlig@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=380982#c22
--- Comment #22 from James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=380982
User juhliarik@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=380982#c23
Jozef Uhliarik
https://bugzilla.novell.com/show_bug.cgi?id=380982
User jfehlig@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=380982#c24
James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=380982
User juhliarik@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=380982#c25
--- Comment #25 from Jozef Uhliarik
https://bugzilla.novell.com/show_bug.cgi?id=380982
User juhliarik@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=380982#c26
--- Comment #26 from Jozef Uhliarik
https://bugzilla.novell.com/show_bug.cgi?id=380982
User juhliarik@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=380982#c27
--- Comment #27 from Jozef Uhliarik
https://bugzilla.novell.com/show_bug.cgi?id=380982
Jozef Uhliarik
https://bugzilla.novell.com/show_bug.cgi?id=380982
User juhliarik@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=380982#c28
Jozef Uhliarik
https://bugzilla.novell.com/show_bug.cgi?id=380982
User jfehlig@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=380982#c29
--- Comment #29 from James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=380982
User jfehlig@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=380982#c30
James Fehlig
participants (1)
-
bugzilla_noreply@novell.com