aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2018-02-09 17:07:25 +0100
committerDanny Milosavljevic <dannym@scratchpost.org>2018-02-15 12:05:21 +0100
commit5a9902c8acd63916c6c80cf3c61be6ee814b7e3d (patch)
treed0e7e766167f085cb2af3c544a8f309616ff2f61 /doc
parent2b870303e70d6f3cbe4ee156b1d454b44cd2709a (diff)
downloadguix-5a9902c8acd63916c6c80cf3c61be6ee814b7e3d.tar
guix-5a9902c8acd63916c6c80cf3c61be6ee814b7e3d.tar.gz
services: agetty: Add agetty instance to base services. Make its tty optional.
* gnu/services/base.scm (%base-services): Instantiate agetty-service. (default-serial-port): New variable. (agetty-shepherd-service): Make tty optional, default to the above. * doc/guix.texi (agetty-configuration): Update "tty" documentation. * gnu/system/install.scm (agetty-default-service): Delete variable. (embedded-installation-os): Remove agetty-default-service instance. Add "console" kernel-argument.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi15
1 files changed, 14 insertions, 1 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 9dafe60eeb..8a9e1bc992 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -9724,7 +9724,20 @@ man page for more information.
@item @code{tty}
The name of the console this agetty runs on, as a string---e.g.,
-@code{"ttyS0"}. This argument is mandatory.
+@code{"ttyS0"}. This argument is optional, it will default to
+a reasonable default serial port used by the kernel Linux.
+
+For this, if there is a value for an option @code{agetty.tty} in the kernel
+command line, agetty will extract the device name of the serial port
+from it and use that.
+
+If not and if there is a value for an option @code{console} with a tty in
+the Linux command line, agetty will extract the device name of the
+serial port from it and use that.
+
+In both cases, agetty will leave the other serial device settings
+(baud rate etc.) alone---in the hope that Linux pinned them to the
+correct values.
@item @code{baud-rate} (default: @code{#f})
A string containing a comma-separated list of one or more baud rates, in