From 5d914961d2e12163f50528fa668e87d5b068fe71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Fri, 5 Jun 2020 03:00:02 +0000 Subject: [PATCH] linux 5.7 nicely shows init arguments --- README.adoc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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.