[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#47979] [PATCH] installer: Recommend 'ntp-service-type' for non-grap
From: |
Mathieu Othacehe |
Subject: |
[bug#47979] [PATCH] installer: Recommend 'ntp-service-type' for non-graphical systems. |
Date: |
Fri, 21 May 2021 14:58:48 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hey Leo,
> +(define (run-system-administration-cbt-page)
> + "Run a page to select various system adminstration services."
> + (let ((items (filter (lambda (service)
> + (eq? 'administration
> + (system-service-type service)))
> + %system-services)))
> + (run-checkbox-tree-page
> + #:title (G_ "Miscellaneous services")
> + #:info-text (G_ "Select miscellaneous services to run on your system.")
> + #:items items
> + #:selection (map system-service-recommended? items)
> + #:item->text (compose G_ system-service-name)
> + #:checkbox-tree-height 5
> + #:exit-button-callback-procedure
> + (lambda ()
> + (raise
> + (condition
> + (&installer-step-abort)))))))
Indentation is off here,
> + ;; Miscellaneous system administration services.
> + (system-service
> + (name (G_ "Network time service, to set the clock automatically"))
> + (type 'administration)
> + (recommended? #t)
> + (snippet '((service ntp-service-type))))
> +
here,
> + (system-service
> + (name (G_ "GPM mouse daemon, to use the mouse in the console"))
> + (type 'administration)
> + (snippet '((service gpm-service-type))))
and here. Those patches are breaking the installer tests because they
introduce a new dialog. You need to add something like:
--8<---------------cut here---------------start------------->8---
((checkbox-list (title "Miscellaneous services") (text _)
(items ,services))
(filter choose-misc-service? services))
--8<---------------cut here---------------end--------------->8---
in the (gnu installer tests) module, to fix this error:
--8<---------------cut here---------------start------------->8---
conversation expecting pattern ((quote list-selection) ((quote title)
"Partitioning method") ((quote multiple-choices?) #f) ((quote items)
(not-encrypted encrypted _ ...)))
/gnu/store/h38i2hvaqy9bd0sbn9isdfzl7m56mngr-shepherd-marionette.scm:1:1718:
ERROR:
1. &pattern-not-matched:
pattern: ((quote list-selection) ((quote title) "Partitioning method")
((quote multiple-choices?) #f) ((quote items) (not-encrypted encrypted _ ...)))
sexp: (checkbox-list (title "Miscellaneous services") (text "Select
miscellaneous services to run on your system.") (items ("Network time service,
to set the clock automatically" "GPM mouse daemon, to use the mouse in the
console")))
May 21 14:53:11 localhost instaBacktrace:
ller[180]: running form #<newt-form 79dc20> ("Miscellaneous services") with 1
clients
2 (primitive-load "/gnu/store/9vzfy688gawwn2p06nn75kiqqz3?")
In ice-9/eval.scm:
191:35 1 (_ #f)
619:8 0 (_ #(#<directory (guile-user) 7ffff3bb3f00> #<variabl?>))
--8<---------------cut here---------------end--------------->8---
Otherwise, it looks fine :)
Thanks,
Mathieu
- [bug#47979] [PATCH] installer: Recommend 'ntp-service-type' for non-graphical systems.,
Mathieu Othacehe <=