Message ID | 20250311033133.1859963-5-adamsimonelli@gmail.com |
---|---|
State | New |
Headers | show |
Series | Optionally allow ttynull to be selected as a default console | expand |
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 --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.
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(-)