iPXE discussion forum

Full Version: initrd vs kernel initrd=
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
(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
Reference URL's