j.l.
j.l.

Reputation: 81

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 {}

Upvotes: 3

Views: 572

Answers (1)

Thomas Berger
Thomas Berger

Reputation: 1870

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

Upvotes: 2

Related Questions