installer: parameters: Add a reboot button.

Suggested by: zimoun <zimon.toutoune@gmail.com>.

* gnu/installer/newt/parameters.scm (run-parameters-page): Add a reboot
button.
This commit is contained in:
Mathieu Othacehe 2020-11-07 18:16:01 +01:00
parent 2c734548fd
commit c2396ceb6e
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -20,6 +20,7 @@ (define-module (gnu installer newt parameters)
#:use-module (gnu installer proxy)
#:use-module (gnu installer steps)
#:use-module (gnu installer newt page)
#:use-module (guix build syscalls)
#:use-module (guix i18n)
#:use-module (ice-9 match)
#:use-module (newt)
@ -40,7 +41,8 @@ (define (run-parameters-page keyboard-layout-selection)
(let* ((items
(list
(cons (G_ "Change keyboard layout") keyboard-layout-selection)
(cons (G_ "Configure HTTP proxy") run-proxy-page)))
(cons (G_ "Configure HTTP proxy") run-proxy-page)
(cons (G_ "Reboot") reboot)))
(result
(run-listbox-selection-page
#:info-text (G_ "Please choose one of the following parameters or \