Initrd: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
m typo |
|||
Line 12: | Line 12: | ||
=== Setup in a Multiboot-compliant kernel === |
=== Setup in a Multiboot-compliant kernel === |
||
If you are using a [[Multiboot]]-compliant kernel, then most of the job is already performed by your bootloader (e.g. [[GRUB]]). All you have to do is tell GRUB to load it along with your kernel, as a [[Multiboot]] module (for GRUB, the setting is found in ''menu.lst'' for GRUB Legacy, or ''grub.cfg'' for GRUB2), and use the [[Multiboot]] structure to find where it has been loaded. |
If you are using a [[Multiboot]]-compliant kernel, then most of the job is already performed by your bootloader (e.g. [[GRUB]]). All you have to do is tell GRUB to load it along with your kernel, as a [[Multiboot]] module (for GRUB, the setting is found in ''menu.lst'' for GRUB Legacy, or ''grub.cfg'' for GRUB2), and use the [[Multiboot]] structure to find where it has been loaded. |
||
A GRUB legacy script would look similar to this: |
|||
<pre> |
|||
title MyOS |
|||
root (fd0) |
|||
kernel /boot/kernel.bin |
|||
module /boot/initrd.bin |
|||
</pre> |
|||
=== Setup in custom-booted kernels === |
=== Setup in custom-booted kernels === |