grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix chainloding + Chainloading into logical partitions


From: Lucas Gadani
Subject: [PATCH] Fix chainloding + Chainloading into logical partitions
Date: Mon, 30 Jun 2008 02:28:24 +0000

Hello,

This is my first patch for GRUB, and I haven't found any coding
styles/formatting, nor developer documentation, so, if there's
something wrong, please, forgive me and point me to the right
direction.

Current implementation of the chainloading code does not work, cause
it reads the partition table from the first sector of the root device,
and the root device does not contain partition information. I've
changed the way partition table are loaded, keeping a copy of the
partition entry in grub_partition_t structs data field, and just
loading this information in the correct address when chainloading.
I've also changed the logical partitions start address to point to the
actual disk sector, instead of pointing to the sector relative to the
beginning of the extended partition, so we can now boot into logical
partitions (for example, syslinux doesn't boot if the partition table
doesn't map to the correct disk sector).

Any comments are appreciated.

-- 
Lucas

Attachment: chainloader.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]