gnu: bootloader: Support multiple targets.
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Fri, 6 Aug 2021 20:33:02 +0000 (16:33 -0400)
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>
Sun, 29 Aug 2021 05:05:26 +0000 (01:05 -0400)
commit2ca982ff41270288913ad6b7d5d9e1cad87b06d9
tree90e95707a8e50c941f65fb16b69842c5cae245e8
parent76114232d7c140fb9fee84510b72fcfe6ee27714
gnu: bootloader: Support multiple targets.

Fixes <https://issues.guix.gnu.org/40997>.

* gnu/bootloader.scm (<bootloader-configuration>): New 'targets' field.
(%bootloader-configuration-target): New procedure.
(bootloader-configuration-target): Add deprecation warning.
(bootloader-configuration-targets): New procedure.
* guix/scripts/system.scm (install): Access targets via
bootloader-configuration-targets.
(perform-action)[bootloader-target]: Remove unused argument and update doc.
Access targets via bootloader-configuration-targets and fix indentation.
(process-action): Access targets via bootloader-configuration-targets.
Do not provide the unused BOOTLOADER-TARGET argument when applying
`perform-action'.
* guix/scripts/system/reconfigure.scm (install-bootloader-program): Rename
DEVICE argument to DEVICES.  Adjust doc and comment.  Apply `installer' and
`disk-installer' for every DEVICES.
(install-bootloader): Access targets via bootloader-configuration-targets and
rename variable from DEVICE to DEVICES.
* gnu/tests/install.scm: Adjust accordingly.
* tests/guix-system.sh: Likewise.
* gnu/tests/reconfigure.scm (run-install-bootloader-test): Adjust the DEVICES
argument so that it is a list.
* doc/guix.texi: Update doc.
doc/guix.texi
gnu/bootloader.scm
gnu/tests/install.scm
gnu/tests/reconfigure.scm
guix/scripts/system.scm
guix/scripts/system/reconfigure.scm
tests/guix-system.sh