diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2025-11-13 22:39:32 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2025-12-03 17:56:15 +0100 |
| commit | d4e06997e4d6288111801c852b0b8a10177815e9 (patch) | |
| tree | d4ca4afae6f14586809c77b02332f2ca59ee5ffe /gnu/services/virtualization.scm | |
| parent | e7da674bc7edd2321e42ef021c8925fefa995313 (diff) | |
services: hurd-vm: Support persistent images again.
Fixes a regression introduced in bab6434f5855b92631615fdd8a2d2a225da28359
whereby following the example from the manual regarding non-volatile images
would no longer work.
* gnu/services/virtualization.scm (hurd-vm-shepherd-service): Pass ‘image’ to
‘system-image’ only if it’s an image.
* doc/guix.texi (Virtualization Services): Explicitly say that the ‘image’
field can contain a file name. Remove use of ‘const’ for the ‘image’ field in
persistent image example and adjust text.
Fixes: guix/guix#4130
Reported-by: Maxim Cournoyer <maxim@guixotic.coop>
Change-Id: I1a81ce27fb45978a681310b8a8788ab671b3edf8
Diffstat (limited to 'gnu/services/virtualization.scm')
| -rw-r--r-- | gnu/services/virtualization.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.scm index 847c4ca7dda..bd1a5b870ce 100644 --- a/gnu/services/virtualization.scm +++ b/gnu/services/virtualization.scm | |||
| @@ -1904,7 +1904,9 @@ is added to the OS specified in CONFIG." | |||
| 1904 | '()) | 1904 | '()) |
| 1905 | #$@net-options | 1905 | #$@net-options |
| 1906 | #$@options | 1906 | #$@options |
| 1907 | "--hda" #+(system-image image) | 1907 | "--hda" #+(if (image? image) |
| 1908 | (system-image image) | ||
| 1909 | image) | ||
| 1908 | 1910 | ||
| 1909 | ;; Cause the service to be respawned if the guest | 1911 | ;; Cause the service to be respawned if the guest |
| 1910 | ;; reboots (it can reboot for instance if it did not | 1912 | ;; reboots (it can reboot for instance if it did not |
