iPXE discussion forum
initrd vs kernel initrd= - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: initrd vs kernel initrd= (/showthread.php?tid=8058)



initrd vs kernel initrd= - ve2tmq - 2016-05-03 13:28

Hi

Some time I can load kernel the initrd like that
kernel /some/kernel
initrd /some/initrd.img

Other time doesn't works. I have to pass initrd as kernel parameter like
kernel /some/kernel initrd=/some/initrd.img

What is the difference between initrd command and passing initrd parameter to kernel command?

thanks.


RE: initrd vs kernel initrd= - mcb30 - 2016-05-10 09:57

(2016-05-03 13:28)ve2tmq Wrote:  Some time I can load kernel the initrd like that
kernel /some/kernel
initrd /some/initrd.img

Other time doesn't works. I have to pass initrd as kernel parameter like
kernel /some/kernel initrd=/some/initrd.img

What is the difference between initrd command and passing initrd parameter to kernel command?

On a UEFI system, you will need to include the "initrd=..." kernel command-line parameter. The Linux kernel's EFI stub uses this parameter to find the initrd image.

On a BIOS system, you do not need the "initrd=..." parameter, but there is no harm in including it.

In general: always include the "initrd=..." parameter. That way, your script will work on both BIOS and UEFI systems.

Michael