diff options
| author | Dig Gashinsky <dig@gashinsky.com> | 2026-08-12 11:15:09 -0400 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2026-08-24 10:14:04 +0900 |
| commit | bcc618a104afb48a5e175da7bde7b2c4efa7922d (patch) | |
| tree | d055625526bd4b8dc9d3e56ac1addea7605f5702 /gnu | |
| parent | 2e20ad8feff67a61ff3513b3335d5d0ec8fa83d6 (diff) | |
images: wsl2: Make the dummy bootloader configuration lowerable.
"guix system reconfigure" lowers the bootloader configuration
and then calls 'derivation->output-path' on the result. A 'plain-file'
lowers to a store file name rather than to a derivation,
so reconfiguring a WSL2 system fails with "Wrong type argument
in position 1 (expecting struct)". Use 'computed-file',
which lowers to a derivation.
* gnu/system/images/wsl2.scm (dummy-bootloader)
[configuration-file-generator]: Return a 'computed-file'
instead of a 'plain-file'.
Merges: https://codeberg.org/guix/guix/pulls/10514
Reviewed-by: gemmaro <gemmaro.dev@gmail.com>
Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/system/images/wsl2.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/system/images/wsl2.scm b/gnu/system/images/wsl2.scm index ce58cd55c60..8729fc45396 100644 --- a/gnu/system/images/wsl2.scm +++ b/gnu/system/images/wsl2.scm | |||
| @@ -134,7 +134,9 @@ USER." | |||
| 134 | (configuration-file "/var/lib/wsl-bootloader.cfg") | 134 | (configuration-file "/var/lib/wsl-bootloader.cfg") |
| 135 | (configuration-file-generator | 135 | (configuration-file-generator |
| 136 | (lambda (. _rest) | 136 | (lambda (. _rest) |
| 137 | (plain-file "dummy-bootloader" ""))) | 137 | (computed-file "dummy-bootloader" |
| 138 | #~(call-with-output-file #$output | ||
| 139 | (lambda (port) (display "" port)))))) | ||
| 138 | (installer #~(const #t)))) | 140 | (installer #~(const #t)))) |
| 139 | 141 | ||
| 140 | (define dummy-kernel dummy-package) | 142 | (define dummy-kernel dummy-package) |
