diff --git a/README.adoc b/README.adoc index 1cc062e..16b2e57 100644 --- a/README.adoc +++ b/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.