m/node: also log to ttyS1
Some systems have their serial console connected to ttyS1, not ttyS0.
We currently have no way of passing this information to the system as we
lock down boot parameters and
there is significant risk in letting people change this, both in terms
of security (some kernel parameters can affect the integrity of the OS)
as well as availability as such a setting needs to be respected by both
A and B loaders, thus any misconfiguration could make the node
non-functional without an obvious way to roll back.
Thus this just adds ttyS1 to the list of serial consoles for the time
being. When we have such a mechanism, we'll likely undo the hardcoding
of all consoles anyways.
Fixes #216
Change-Id: I2f35edad049ceae1bb5cfc22b89bf6a1664cfbf8
Reviewed-on: https://review.monogon.dev/c/monogon/+/1625
Tested-by: Jenkins CI
Reviewed-by: Serge Bazanski <serge@monogon.tech>
diff --git a/metropolis/node/build/earlydev.fsspec b/metropolis/node/build/earlydev.fsspec
index 1e32803..a7d2ea4 100644
--- a/metropolis/node/build/earlydev.fsspec
+++ b/metropolis/node/build/earlydev.fsspec
@@ -31,7 +31,7 @@
>
-# Metropolis core logs to /dev/ttyS0 and /dev/tty0 by default, we want
+# Metropolis core logs to /dev/ttyS{0,1} and /dev/tty0 by default, we want
# these to also be present before devtmpfs is mounted so that minit can
# log there, too.
special_file <
@@ -46,3 +46,9 @@
major: 4 minor: 64
mode: 0660 uid: 0 gid: 0
>
+special_file <
+ path: "/dev/ttyS1"
+ type: CHARACTER_DEV
+ major: 4 minor: 65
+ mode: 0660 uid: 0 gid: 0
+>
\ No newline at end of file