diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2015-09-12 13:53:21 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2015-10-10 22:46:14 +0200 |
| commit | 66e4f01c601bfad813011a811796e70f970258f9 (patch) | |
| tree | 7b48b858e0a03edf52a6f572d617655f24dd384f /gnu/system | |
| parent | be1c2c54d9f918f50f71c6d32a72d4498c07504c (diff) | |
services: mingetty-service: Use <mingetty-configuration> objects.
* gnu/services/base.scm (<mingetty-configuration>): New record type.
(mingetty-service): Expect a single <mingetty-configuration> instead
of keyword arguments.
(%base-services): Adjust accordingly.
* gnu/system/install.scm (installation-services): Likewise.
* doc/guix.texi (Base Services): Adjust accordingly.
Diffstat (limited to 'gnu/system')
| -rw-r--r-- | gnu/system/install.scm | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/gnu/system/install.scm b/gnu/system/install.scm index 1ba36c394b5..560d64b5d4f 100644 --- a/gnu/system/install.scm +++ b/gnu/system/install.scm | |||
| @@ -242,22 +242,24 @@ it is alpha software, so it may BREAK IN UNEXPECTED WAYS. | |||
| 242 | You have been warned. Thanks for being so brave. | 242 | You have been warned. Thanks for being so brave. |
| 243 | "))) | 243 | "))) |
| 244 | (define (normal-tty tty) | 244 | (define (normal-tty tty) |
| 245 | (mingetty-service tty | 245 | (mingetty-service (mingetty-configuration (tty tty) |
| 246 | #:motd motd | 246 | (motd motd) |
| 247 | #:auto-login "root" | 247 | (auto-login "root") |
| 248 | #:login-pause? #t)) | 248 | (login-pause? #t)))) |
| 249 | 249 | ||
| 250 | (list (mingetty-service "tty1" | 250 | (list (mingetty-service (mingetty-configuration |
| 251 | #:motd motd | 251 | (tty "tty1") |
| 252 | #:auto-login "root") | 252 | (motd motd) |
| 253 | (auto-login "root"))) | ||
| 253 | 254 | ||
| 254 | ;; Documentation. The manual is in UTF-8, but | 255 | ;; Documentation. The manual is in UTF-8, but |
| 255 | ;; 'console-font-service' sets up Unicode support and loads a font | 256 | ;; 'console-font-service' sets up Unicode support and loads a font |
| 256 | ;; with all the useful glyphs like em dash and quotation marks. | 257 | ;; with all the useful glyphs like em dash and quotation marks. |
| 257 | (mingetty-service "tty2" | 258 | (mingetty-service (mingetty-configuration |
| 258 | #:motd motd | 259 | (tty "tty2") |
| 259 | #:auto-login "guest" | 260 | (motd motd) |
| 260 | #:login-program (log-to-info)) | 261 | (auto-login "guest") |
| 262 | (login-program (log-to-info)))) | ||
| 261 | 263 | ||
| 262 | ;; Documentation add-on. | 264 | ;; Documentation add-on. |
| 263 | (configuration-template-service) | 265 | (configuration-template-service) |
