Hi. I want to make my grub image file independent from the data in the MBR gap, i.e. I want to embed the generated core.img into my custom image file.
I have some questions: - Does the grub2 command "chainloader /foo.img" load the whole file or just the 1st 512 bytes? - Does a BOOTSECTOR entry in Windows boot manager load the whole file or just the 1st 512 bytes? If the answer to both questions is "yes", then a custom image can be made that will include core.img and a very simple boot sector, that will assume that core.img is already loaded. To my knowledge, neither of the images that ship with grub2 does that. What preparations should the custom boot sector do? At what offset should core.img be loaded and jumped to? _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
