Code: Select all
menuentry "example" {
multiboot /boot/os.bin
module /boot/initrd.img
}
Update: <<<My main concern is that I am not correctly understanding how to implement a module>>>
Code: Select all
menuentry "example" {
multiboot /boot/os.bin
module /boot/initrd.img
}
Code: Select all
// Find the location of our initial ramdisk.
ASSERT(mboot_ptr->mods_count > 0);
u32int initrd_location = *((u32int*)mboot_ptr->mods_addr);
u32int initrd_end = *(u32int*)(mboot_ptr->mods_addr+4);
// Don't trample our module with placement accesses, please!
placement_address = initrd_end;
// Start paging.
initialise_paging();
Code: Select all
menuentry "example" {
multiboot /boot/os.bin
module /boot/initrd.img
}
Code: Select all
grub-mkrescue --output=example.iso isodir