diff options
| author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-08-06 16:33:02 -0400 |
|---|---|---|
| committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-08-29 01:05:26 -0400 |
| commit | 2ca982ff41270288913ad6b7d5d9e1cad87b06d9 (patch) | |
| tree | 90e95707a8e50c941f65fb16b69842c5cae245e8 /tests | |
| parent | 76114232d7c140fb9fee84510b72fcfe6ee27714 (diff) | |
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.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/guix-system.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/guix-system.sh b/tests/guix-system.sh index 7e992e7bdbc..6aab1f380a9 100644 --- a/tests/guix-system.sh +++ b/tests/guix-system.sh | |||
| @@ -115,7 +115,7 @@ cat > "$tmpfile" <<EOF | |||
| 115 | (timezone "Europe/Paris") ; 6 | 115 | (timezone "Europe/Paris") ; 6 |
| 116 | (locale "en_US.UTF-8") ; 7 | 116 | (locale "en_US.UTF-8") ; 7 |
| 117 | 117 | ||
| 118 | (bootloader (GRUB-config (target "/dev/sdX"))) ; 9 | 118 | (bootloader (GRUB-config (targets (list "/dev/sdX")))) ; 9 |
| 119 | (file-systems (cons (file-system | 119 | (file-systems (cons (file-system |
| 120 | (device (file-system-label "root")) | 120 | (device (file-system-label "root")) |
| 121 | (mount-point "/") | 121 | (mount-point "/") |
| @@ -168,7 +168,7 @@ OS_BASE=' | |||
| 168 | 168 | ||
| 169 | (bootloader (bootloader-configuration | 169 | (bootloader (bootloader-configuration |
| 170 | (bootloader grub-bootloader) | 170 | (bootloader grub-bootloader) |
| 171 | (target "/dev/sdX"))) | 171 | (targets (list "/dev/sdX")))) |
| 172 | (file-systems (cons (file-system | 172 | (file-systems (cons (file-system |
| 173 | (device (file-system-label "root")) | 173 | (device (file-system-label "root")) |
| 174 | (mount-point "/") | 174 | (mount-point "/") |
| @@ -241,7 +241,7 @@ make_user_config () | |||
| 241 | 241 | ||
| 242 | (bootloader (bootloader-configuration | 242 | (bootloader (bootloader-configuration |
| 243 | (bootloader grub-bootloader) | 243 | (bootloader grub-bootloader) |
| 244 | (target "/dev/sdX"))) | 244 | (targets (list "/dev/sdX")))) |
| 245 | (file-systems (cons (file-system | 245 | (file-systems (cons (file-system |
| 246 | (device (file-system-label "root")) | 246 | (device (file-system-label "root")) |
| 247 | (mount-point "/") | 247 | (mount-point "/") |
