mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
linux 5.7 nicely shows init arguments
This commit is contained in:
15
README.adoc
15
README.adoc
@@ -3158,6 +3158,21 @@ asdf=qwer
|
||||
|
||||
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
|
||||
|
||||
The annoying dash `-` gets passed as a parameter to `init`, which makes it impossible to use this method for most non custom executables.
|
||||
|
||||
Reference in New Issue
Block a user