summary refs log tree commit diff
path: root/gnu/installer/tests.scm
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2021-04-23 14:50:15 -0400
committerLeo Famulari <leo@famulari.name>2021-12-28 15:26:39 -0500
commit2842a42b518227607fed4470b0de1c84e3511beb (patch)
tree1a192b65329ae72d5f6e1c562faacef33c0662e2 /gnu/installer/tests.scm
parent029f8d7c120f80475aee6100e4f682bc7ab8f1f9 (diff)
downloadguix-2842a42b518227607fed4470b0de1c84e3511beb.tar.gz
installer: Recommend 'ntp-service-type' for non-graphical systems.
We had several bug reports with a root cause of "the clock was
incorrect" from users who used the installer to install a non-graphical
Guix System.

* gnu/installer/services.scm (%system-services): Add the ntp-service-type.
* gnu/installer/newt/services.scm (run-system-administration-cbt-page): New
variable.
(run-services-page): Use run-system-administration-cbt-page when not
installing a desktop.
* gnu/installer/tests.scm (choose-services): Add and use a
choose-misc-service?  procedure.
* gnu/tests/install.scm (installation-target-os-for-gui-tests)<services>: Add
ntp-service-type.
Diffstat (limited to 'gnu/installer/tests.scm')
-rw-r--r--gnu/installer/tests.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/installer/tests.scm b/gnu/installer/tests.scm
index 5d931149b8..3c049a1c85 100644
--- a/gnu/installer/tests.scm
+++ b/gnu/installer/tests.scm
@@ -221,7 +221,11 @@ ROOT-PASSWORD, and USERS."
                           (choose-network-management-tool?
                            (lambda (service)
                              (string-contains service "DHCP")))
+                          (choose-misc-service?
+                           (lambda (service)
+                             (string-contains service "NTP")))
                           (choose-other-service? (const #f)))
+
   "Converse over PORT to choose services."
   (define desktop-environments '())
 
@@ -243,6 +247,11 @@ ROOT-PASSWORD, and USERS."
      (null? desktop-environments)
      (find choose-network-management-tool? services))
 
+    ((checkbox-list (title "Console services") (text _)
+                    (items ,services))
+     (null? desktop-environments)
+     (filter choose-misc-service? services))
+
     ((checkbox-list (title "Printing and document services") (text _)
                     (items ,services))
      (filter choose-other-service? services))))