Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fetching the kernel parameters passed via bootloader (grub)

How can be accessed kernel parameters (passed via Grub) in initramfs's init script? I have idea to introduce some param and use use it init like if(myparam == 0) {} else {}

like image 837
j.l. Avatar asked May 01 '26 00:05

j.l.


1 Answers

The data you are looking for could be found in /proc/cmdline

like image 66
Thomas Berger Avatar answered May 02 '26 15:05

Thomas Berger



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!