moreau francis wrote:
> I'm going to use initrd to mount my root fs, but I was
> wondering what its status...
> I have noticed in boot directory addinitrd program
> that seems to add an initrd image right after the
> But there's also a section in kernel/vmlinux.lds.S
> .initrd that includes initrd image during kernel
> Why are there two different ways of using initrd ?
Actually, there are three:
- the generic initramfs method for compiled in initrds
- the addinitrd method to attach a initrd to a precompiled kernel
image (which is old, and essentially unmaintained)
- the rd_start/rd_size method, which allows a bootloader to load both
kernel and initrd images into memory and then tells the kernel via
the rd_start/rd_size parameters where the initrd is located
> Which one I should use ?
Depends on your machine/bootloader and how much flexibility you want.