osbase/bringup: remove tty0 from default consoles
This default was copied from the cloud/agent and intereferes with
tconsole in metropolis. It's not possible to stop the
forwarder from the root runnable and since the code imports
all kernel cmdline console arguments, we can safely remove this default listener.
Change-Id: I5d38d2fde8499ae2ee9057cc21b6b2a1244a0e65
Reviewed-on: https://review.monogon.dev/c/monogon/+/4437
Tested-by: Jenkins CI
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/osbase/bringup/bringup.go b/osbase/bringup/bringup.go
index d4d978a..dacdb15 100644
--- a/osbase/bringup/bringup.go
+++ b/osbase/bringup/bringup.go
@@ -2,8 +2,8 @@
// SPDX-License-Identifier: Apache-2.0
// Package bringup implements a simple wrapper which configures all default
-// mounts, logging and the corresponding forwarders to tty0 and ttyS0. It
-// then configures a new logtree and starts a supervisor to run the provided
+// mounts, logging and the corresponding forwarder ttyS0. It then configures
+// a new logtree and starts a supervisor to run the provided
// supervisor.Runnable. Said Runnable is expected to return no error. If it
// does, the supervisor will exit, an error will be printed and the system will
// reboot after five seconds.
@@ -257,9 +257,8 @@
func collectConsoles() []*console {
const defaultMaxWidth = 120
- // Add the two standard tty0/ttyS0 consoles
+ // Add the standard ttyS0 console
consoles := map[string]int{
- "tty0": defaultMaxWidth,
"ttyS0": defaultMaxWidth,
}