Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
initrd vs kernel initrd=
2016-05-03, 13:28
Post: #1
initrd vs kernel initrd=
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.
Find all posts by this user
Quote this message in a reply
2016-05-10, 09:57
Post: #2
RE: initrd vs kernel initrd=
(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
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)