guix/gnu/installer
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
..
aux-files installer: Use 'glibc-supported-locales'. 2019-05-13 23:46:08 +02:00
newt installer: Implement a dialog on /var/guix/installer-socket. 2020-03-05 23:40:22 +01:00
connman.scm installer: Fix wifi menu crash with hidden SSIDs. 2019-05-29 11:44:49 +02:00
final.scm installer: Remove the cow-store overlay after system installation. 2020-02-12 10:49:48 +01:00
hostname.scm installer: Add hostname. 2019-01-17 14:04:23 +01:00
keymap.scm installer: Parse the 'shortDescription' field from xkeyboard-config. 2019-04-17 15:13:31 +02:00
locale.scm maint: Switch to Guile-JSON 3.x. 2019-07-25 00:16:41 +02:00
newt.scm installer: Clear screen upon exit. 2019-01-17 14:04:26 +01:00
parted.scm installer: Log important bits to syslog. 2020-02-22 00:45:42 +01:00
record.scm installer: Add partitioning support. 2019-01-17 14:04:24 +01:00
services.scm installer: Install xterm alongside ratpoison. 2019-06-07 22:32:19 +02:00
steps.scm installer: Implement a dialog on /var/guix/installer-socket. 2020-03-05 23:40:22 +01:00
timezone.scm gnu: Fix some typos in the installer. 2019-02-18 01:52:47 +01:00
user.scm installer: User can have a "real name". 2019-04-28 22:57:07 +02:00
utils.scm installer: Implement a dialog on /var/guix/installer-socket. 2020-03-05 23:40:22 +01:00