Skip to content

Commit ddeb36d

Browse files
rootroot
authored andcommitted
Fixed some page entries
1 parent 283cf2f commit ddeb36d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.adoc

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3435,10 +3435,10 @@ at the very end of the boot logs.
34353435

34363436
=== Init environment
34373437

3438-
Documented at https://www.kernel.org/doc/html/v4.14/admin-guide/kernel-parameters.html[]:
3438+
Documented at https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html[]:
34393439

34403440
____
3441-
The kernel parses parameters from the kernel command line up to "-"; if it doesn't recognize a parameter and it doesn't contain a '.', the parameter gets passed to init: parameters with '=' go into init's environment, others are passed as command line arguments to init. Everything after "-" is passed as an argument to init.
3441+
The kernel parses parameters from the kernel command line up to "--"; if it doesn't recognize a parameter and it doesn't contain a '.', the parameter gets passed to init: parameters with '=' go into init's environment, others are passed as command line arguments to init. Everything after "--" is passed as an argument to init.
34423442
____
34433443

34443444
And you can try it out with:
@@ -3450,22 +3450,21 @@ And you can try it out with:
34503450
From the <<dry-run,generated QEMU command>>, we see that the kernel CLI at LKMC 69f5745d3df11d5c741551009df86ea6c61a09cf now contains:
34513451

34523452
....
3453-
init=/lkmc/linux/init_env_poweroff.out console=ttyS0 - lkmc_home=/lkmc asdf=qwer zxcv
3453+
init=/lkmc/linux/init_env_poweroff.out console=ttyS0 -- lkmc_home=/lkmc asdf=qwer zxcv
34543454
....
34553455

34563456
and the init program outputs:
34573457

34583458
....
34593459
args:
34603460
/lkmc/linux/init_env_poweroff.out
3461-
-
3461+
lkmc_home=/lkmc
3462+
asdf=qwer
34623463
zxcv
34633464

34643465
env:
34653466
HOME=/
34663467
TERM=linux
3467-
lkmc_home=/lkmc
3468-
asdf=qwer
34693468
....
34703469

34713470
Source: link:userland/linux/init_env_poweroff.c[].
@@ -6089,7 +6088,7 @@ See also:
60896088
* https://unix.stackexchange.com/questions/48601/how-to-display-the-linux-kernel-command-line-parameters-given-for-the-current-bo
60906089
* https://askubuntu.com/questions/32654/how-do-i-find-the-boot-parameters-used-by-the-running-kernel
60916090

6092-
The arguments are documented in the kernel documentation: https://www.kernel.org/doc/html/v4.14/admin-guide/kernel-parameters.html
6091+
The arguments are documented in the kernel documentation: https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html
60936092

60946093
When dealing with real boards, extra command line options are provided on some magic bootloader configuration file, e.g.:
60956094

0 commit comments

Comments
 (0)