Skip to content

Commit 96b02f2

Browse files
rddunlappmladek
authored andcommitted
Docs: printk: add 'console=null|""' to admin/kernel-parameters
Tell about 'console=null|""' and how to use it. It can be helpful to set (enable) CONFIG_NULL_TTY so that the ttynull driver is available. This avoids problems with stdin/stdout/stderr of the init process. Howevere, CONFIG_NULL_TTY cannot be enabled by default because it can be used by mistake, see the commit a91bd62 ("Revert "init/console: Use ttynull as a fallback when there is no console""). Signed-off-by: Randy Dunlap <[email protected]> Cc: Petr Mladek <[email protected]> Cc: Sergey Senozhatsky <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: John Ogness <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: [email protected] [[email protected]: Slightly update wording.] Signed-off-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 2ba3673 commit 96b02f2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,12 @@
724724
hvc<n> Use the hypervisor console device <n>. This is for
725725
both Xen and PowerPC hypervisors.
726726

727+
{ null | "" }
728+
Use to disable console output, i.e., to have kernel
729+
console messages discarded.
730+
This must be the only console= parameter used on the
731+
kernel command line.
732+
727733
If the device connected to the port is not a TTY but a braille
728734
device, prepend "brl," before the device type, for instance
729735
console=brl,ttyS0

0 commit comments

Comments
 (0)