Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 的 init 脚本中访问内核参数(通过Grub)initramfs?我有想法引入一些参数并像使用它一样使用它if(myparam == 0) {} else {}
Grub
initramfs
if(myparam == 0) {} else {}
您要查找的数据可以在/proc/cmdline
/proc/cmdline