guix-kreyren/gnu
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
..
bootloader
build build: file-systems: Do not warn about file system check for NFS. 2020-03-02 23:59:45 -05:00
installer installer: Implement a dialog on /var/guix/installer-socket. 2020-03-05 23:40:22 +01:00
machine
packages gnu: java-openjfx-build: Add snippet. 2020-03-05 22:10:17 +01:00
services services: herd: Add restart-service. 2020-03-03 15:00:32 +01:00
system file-systems: Add a 'file-system-device->string' procedure. 2020-03-02 23:24:47 -05:00
tests tests: 'run-basic-test' can enter a root password. 2020-03-05 23:40:22 +01:00
artwork.scm
bootloader.scm
ci.scm tests: "make check-system" no longer interns source upfront. 2020-03-05 16:33:37 +01:00
installer.scm installer: Use a Guile-Newt snapshot that supports 'form-watch-fd'. 2020-03-05 23:40:22 +01:00
local.mk gnu: SuiteSparse: Update to 5.7.1. 2020-03-04 18:08:13 -05:00
machine.scm
packages.scm
services.scm
system.scm file-systems: Add a 'file-system-device->string' procedure. 2020-03-02 23:24:47 -05:00
tests.scm tests: Add <system-test> gexp compiler. 2020-03-05 16:33:37 +01:00