Skip to content

Commit 97beb6f

Browse files
committed
kernel: add cmdline explanation.
What it is, how it works, what uses the values there.
1 parent 179210d commit 97beb6f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/config/kernel.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,23 @@ repositories.
130130

131131
## cmdline
132132

133+
The kernel, the initial RAM disk (initrd) and some system programs can be
134+
configured at boot by kernel command line arguments. The parameters understood
135+
by the kernel are explained in the [kernel-parameters
136+
documentation](https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html)
137+
and by [bootparam(7)](https://man.voidlinux.org/bootparam.7). Parameters
138+
understood by dracut can be found in
139+
[dracut.cmdline(7)](https://man.voidlinux.org/dracut.cmdline.7).
140+
141+
Once the system is booted, the current kernel command line parameters can be
142+
found in the `/proc/cmdline` file. Some system programs can change their
143+
behavior based on the parameters passed in the command line, which is what
144+
happens when [booting a different
145+
runsvdir](./services/index.md#booting-a-different-runsvdir), for example.
146+
147+
There are different ways of setting these parameters, some of which are
148+
explained below.
149+
133150
### GRUB
134151

135152
Kernel command line arguments can be added through the GRUB bootloader by

0 commit comments

Comments
 (0)