guix-kreyren/gnu/installer/newt
Ludovic Courtès 63b8c089c1
installer: Implement a dialog on /var/guix/installer-socket.
This will allow us to automate testing of the installer.

* gnu/installer/utils.scm (%client-socket-file)
(current-server-socket, current-clients): New variables.
(open-server-socket, call-with-server-socket): New procedure.
(with-server-socket): New macro.
(run-shell-command): Add call to 'send-to-clients'.  Select on both
current-input-port and current-clients.
* gnu/installer/steps.scm (run-installer-steps): Wrap 'call-with-prompt'
in 'with-socket-server'.  Call 'sigaction' for SIGPIPE.
* gnu/installer/newt/page.scm (watch-clients!, close-port-and-reuse-fd)
(run-form-with-clients, send-to-clients): New procedures.
(draw-info-page): Add call to 'run-form-with-clients'.
(run-input-page): Likewise.  Handle EXIT-REASON equal to 'exit-fd-ready.
(run-confirmation-page): Likewise.
(run-listbox-selection-page): Likewise.  Define 'choice->item' and use it.
(run-checkbox-tree-page): Likewise.
(run-file-textbox-page): Add call to 'run-form-with-clients'.  Handle
'exit-fd-ready'.
* gnu/installer/newt/partition.scm (run-disk-page): Pass
 #:client-callback-procedure to 'run-listbox-selection-page'.
* gnu/installer/newt/user.scm (run-user-page): Call
'run-form-with-clients'.  Handle 'exit-fd-ready'.
* gnu/installer/newt/welcome.scm (run-menu-page): Define
'choice->item' and use it.  Call 'run-form-with-clients'.
* gnu/installer/newt/final.scm (run-install-success-page)
(run-install-failed-page): When (current-clients) is non-empty, call
'send-to-clients' without displaying a choice window.
2020-03-05 23:40:22 +01:00
..
ethernet.scm
final.scm installer: Implement a dialog on /var/guix/installer-socket. 2020-03-05 23:40:22 +01:00
hostname.scm
keymap.scm
locale.scm
menu.scm
network.scm
page.scm installer: Implement a dialog on /var/guix/installer-socket. 2020-03-05 23:40:22 +01:00
partition.scm installer: Implement a dialog on /var/guix/installer-socket. 2020-03-05 23:40:22 +01:00
services.scm
timezone.scm
user.scm installer: Implement a dialog on /var/guix/installer-socket. 2020-03-05 23:40:22 +01:00
utils.scm
welcome.scm installer: Implement a dialog on /var/guix/installer-socket. 2020-03-05 23:40:22 +01:00
wifi.scm