guix-install.sh: Prompt for configuring substitutes discovery.

Also ensure prompt_yes_no always print the message with a trailing space,
which is more pleasing to the eye.

* etc/guix-daemon.conf.in <--discover=no>: New guix-daemon option.
* etc/guix-daemon.service.in: Likewise.
* etc/init.d/guix-daemon.in: Likewise.
* etc/openrc/guix-daemon.in: Likewise.
* etc/guix-install.sh (configure_substitute_discovery): New procedure.
(sys_enable_guix_daemon): Ask the user whether automatic substitute discovery
should be enabled.  Set the '--discover' argument accordingly.
(prompt_yes_no): Add a trailing space to the message.
(sys_authorize_build_farms): Remove trailing space from the message argument.
* NEWS (Distribution): Add news.
This commit is contained in:
Maxim Cournoyer 2021-07-05 16:44:29 -04:00
parent ac3444968a
commit 4cbe0127a6
No known key found for this signature in database
GPG key ID: 1260E46482E63562
6 changed files with 28 additions and 8 deletions

5
NEWS
View file

@ -14,8 +14,9 @@ Please send Guix bug reports to bug-guix@gnu.org.
* Changes in 1.4.0 (since 1.3.0)
** Package management
* New 'deb' format for the 'guix pack' command
*** New 'deb' format for the 'guix pack' command
** Distribution
*** The installation script can now enable local substitute servers discovery
* Changes in 1.3.0 (since 1.2.0)
** Package management
*** POWER9 (powerpc64le-linux) is now supported as a technology preview