summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Victal <mirai@makinata.eu>2023-02-25 18:57:49 +0000
committerLudovic Courtès <ludo@gnu.org>2023-03-03 17:55:32 +0100
commitad665a38fc18ed7a6b8efb09086713b0e73e3781 (patch)
tree8c7e2a5eef39cf595beac9b41d48c76cb8539aa8
parent6dd635b4cf7a65560056c1089982fe00f73e6468 (diff)
services: base: Deprecate 'mingetty-service' procedure.
* doc/guix.texi (Base Services): Replace mingetty-service with mingetty-service-type. * gnu/services/base.scm (mingetty-service): Deprecate procedure. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--doc/guix.texi15
-rw-r--r--gnu/services/base.scm5
-rw-r--r--gnu/system/install.scm7
3 files changed, 14 insertions, 13 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 0d205555c1b..06f77639ce0 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -18123,18 +18123,17 @@ the 'root' account has just been created.
18123@end table 18123@end table
18124@end deftp 18124@end deftp
18125 18125
18126@deffn {Scheme Procedure} mingetty-service @var{config} 18126@defvar mingetty-service-type
18127Return a service to run mingetty according to @var{config}, a 18127Type of the service that runs Mingetty, an implementation of the
18128@code{<mingetty-configuration>} object, which specifies the tty to run, among 18128virtual console log-in. The value for this service is a
18129other things. 18129@code{<mingetty-configuration>} object.
18130@end deffn 18130@end defvar
18131 18131
18132@deftp {Data Type} mingetty-configuration 18132@deftp {Data Type} mingetty-configuration
18133This is the data type representing the configuration of Mingetty, which 18133Data type representing the configuration of Mingetty, which specifies
18134provides the default implementation of virtual console log-in. 18134the tty to run, among other things.
18135 18135
18136@table @asis 18136@table @asis
18137
18138@item @code{tty} 18137@item @code{tty}
18139The name of the console this Mingetty runs on---e.g., @code{"tty1"}. 18138The name of the console this Mingetty runs on---e.g., @code{"tty1"}.
18140 18139
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 8dfd92aacfb..c762485054e 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -173,7 +173,7 @@
173 mingetty-configuration-clear-on-logout? 173 mingetty-configuration-clear-on-logout?
174 mingetty-configuration-mingetty 174 mingetty-configuration-mingetty
175 mingetty-configuration? 175 mingetty-configuration?
176 mingetty-service 176 mingetty-service ; deprecated
177 mingetty-service-type 177 mingetty-service-type
178 178
179 %nscd-default-caches 179 %nscd-default-caches
@@ -1275,7 +1275,8 @@ the tty to run, among other things."
1275 "Provide console login using the @command{mingetty} 1275 "Provide console login using the @command{mingetty}
1276program."))) 1276program.")))
1277 1277
1278(define* (mingetty-service config) 1278(define-deprecated (mingetty-service config)
1279 mingetty-service-type
1279 "Return a service to run mingetty according to @var{config}, which specifies 1280 "Return a service to run mingetty according to @var{config}, which specifies
1280the tty to run, among other things." 1281the tty to run, among other things."
1281 (service mingetty-service-type config)) 1282 (service mingetty-service-type config))
diff --git a/gnu/system/install.scm b/gnu/system/install.scm
index 8c7585f188c..1b05a862c67 100644
--- a/gnu/system/install.scm
+++ b/gnu/system/install.scm
@@ -331,9 +331,10 @@ Using this shell, you can carry out the installation process \"manually.\"
331Access documentation at any time by pressing Alt-F2.\x1b[0m 331Access documentation at any time by pressing Alt-F2.\x1b[0m
332"))) 332")))
333 (define (normal-tty tty) 333 (define (normal-tty tty)
334 (mingetty-service (mingetty-configuration (tty tty) 334 (service mingetty-service-type
335 (auto-login "root") 335 (mingetty-configuration (tty tty)
336 (login-pause? #t)))) 336 (auto-login "root")
337 (login-pause? #t))))
337 338
338 (define bare-bones-os 339 (define bare-bones-os
339 (load "examples/bare-bones.tmpl")) 340 (load "examples/bare-bones.tmpl"))