I learned that if the kernel does not understand a parameter, it saves it and passes it to init
when performing the user space start.
While e.g. in show parameters of running kernel or How to display kernel command line parameters? you learn that
cat /proc/cmdline
shows
Arguments passed to the Linux kernel at boot time
and sysctl --all
shows up all possible kernel parameters
... they do not tell me which of the parameters are actually not processed by the kernel but passed along to init
.
How can I check which parameters the kernel actually accepted and which are passed on? How can I display the parameters that were provided to init
?
I guess it depends on the actual implementation of init (systemd
, upstart
, systemvinit
)...
/proc/cmdline
— and any application,init
included, can grab and interpret any parameter it likes. See argumentnox
on certain distributions for example. The latter prevents X from starting automatically and is interpreted by a script in /etc/init.d notinit
itself. – May 10 '15 at 18:14-s
to the kernel parameters, the kernel passes the-s
to the init program to indicate ..." – langlauf.io May 10 '15 at 18:18cat /proc/1/cmdline
to give me the answer you're looking for. – May 10 '15 at 18:23-s
indeed is one of these and it means "boot in single user mode". Refer toman init
for details. I learnt something new today :D . – May 10 '15 at 18:34