linux 5.7 nicely shows init arguments

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-06-05 03:00:02 +00:00
parent 2ccce0cf1f
commit 5d914961d2

View File

@@ -3158,6 +3158,21 @@ asdf=qwer
Source: link:userland/linux/init_env_poweroff.c[]. Source: link:userland/linux/init_env_poweroff.c[].
As of the Linux kernel v5.7 (possibly earlier, I've skipped a few releases), boot also shows the init arguments and environment very clearly, which is a great addition:
....
<6>[ 0.309984] Run /sbin/init as init process
<7>[ 0.309991] with arguments:
<7>[ 0.309997] /sbin/init
<7>[ 0.310004] nokaslr
<7>[ 0.310010] -
<7>[ 0.310016] with environment:
<7>[ 0.310022] HOME=/
<7>[ 0.310028] TERM=linux
<7>[ 0.310035] earlyprintk=pl011,0x1c090000
<7>[ 0.310041] lkmc_home=/lkmc
....
==== init arguments ==== init arguments
The annoying dash `-` gets passed as a parameter to `init`, which makes it impossible to use this method for most non custom executables. The annoying dash `-` gets passed as a parameter to `init`, which makes it impossible to use this method for most non custom executables.