diff mbox series

[v8,4/4] Documentation/serial-console: Document CONFIG_NULL_TTY_DEFAULT_CONSOLE.

Message ID 20250311033133.1859963-5-adamsimonelli@gmail.com
State New
Headers show
Series Optionally allow ttynull to be selected as a default console | expand

Commit Message

Adam Simonelli March 11, 2025, 3:31 a.m. UTC
From: Adam Simonelli <adamsimonelli@gmail.com>

When the kernel is compiled with CONFIG_NULL_TTY_DEFAULT_CONSOLE and
no console= options are selected, it defaults to using the ttynull
device.
---
 Documentation/admin-guide/serial-console.rst | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Petr Mladek March 12, 2025, 3:40 p.m. UTC | #1
On Mon 2025-03-10 23:31:33, adamsimonelli@gmail.com wrote:
> From: Adam Simonelli <adamsimonelli@gmail.com>
> 
> When the kernel is compiled with CONFIG_NULL_TTY_DEFAULT_CONSOLE and
> no console= options are selected, it defaults to using the ttynull
> device.

There is a missing Signed-off-by.

The change looks fine to me. Feel free to use:

Reviewed-by: Petr Mladek <pmladek@suse.com>

That said, I would personally squash this into the patch adding
the CONFIG_NULL_TTY_DEFAULT_CONSOLE configure option.

Best Regards,
Petr
diff mbox series

Patch

diff --git a/Documentation/admin-guide/serial-console.rst b/Documentation/admin-guide/serial-console.rst
index a3dfc2c66e01..1609e7479249 100644
--- a/Documentation/admin-guide/serial-console.rst
+++ b/Documentation/admin-guide/serial-console.rst
@@ -78,7 +78,9 @@  If no console device is specified, the first device found capable of
 acting as a system console will be used. At this time, the system
 first looks for a VGA card and then for a serial port. So if you don't
 have a VGA card in your system the first serial port will automatically
-become the console.
+become the console, unless the kernel is configured with the
+CONFIG_NULL_TTY_DEFAULT_CONSOLE option, then it will default to using the
+ttynull device.
 
 You will need to create a new device to use ``/dev/console``. The official
 ``/dev/console`` is now character device 5,1.