[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#74151] [PATCH 3/7] system/vm: Fix virtual-machine bug.
From: |
Maxim Cournoyer |
Subject: |
[bug#74151] [PATCH 3/7] system/vm: Fix virtual-machine bug. |
Date: |
Fri, 1 Nov 2024 16:11:39 +0900 |
The virtual-machine syntax would not accept a single operating-system field,
which was puzzling.
* gnu/system/vm.scm (virtual-machine): Add a pattern matching a single literal
'operating-system' field and value.
Change-Id: If207fd71df3a3f763b2e63229eafa82f63e80773
---
gnu/system/vm.scm | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index a2743453e7..4a400056d7 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -422,10 +422,14 @@ (define-record-type* <virtual-machine> %virtual-machine
(default #f)))
(define-syntax virtual-machine
- (syntax-rules ()
+ (syntax-rules (operating-system)
"Declare a virtual machine running the specified OS, with the given
options."
- ((_ os) ;shortcut
+ ((_ (operating-system os))
+ ;; Also accept the long form (virtual-machine (operating-system os)), for
+ ;; correctness.
+ (%virtual-machine (operating-system os)))
+ ((_ os) ;shortcut
(%virtual-machine (operating-system os)))
((_ fields ...)
(%virtual-machine fields ...))))
--
2.46.0
- [bug#74151] [PATCH 0/7] Add anonip system test., Maxim Cournoyer, 2024/11/01
- [bug#74151] [PATCH 1/7] doc: Use @table @code for anonip-configuration doc., Maxim Cournoyer, 2024/11/01
- [bug#74151] [PATCH 2/7] services: anonip: Add 'debug?' configuration field., Maxim Cournoyer, 2024/11/01
- [bug#74151] [PATCH 3/7] system/vm: Fix virtual-machine bug.,
Maxim Cournoyer <=
- [bug#74151] [PATCH 4/7] tests: web: Have the retry-on-error throw on exhausted attempts., Maxim Cournoyer, 2024/11/01
- [bug#74151] [PATCH 5/7] services: herd: Export 'eval-there' in API., Maxim Cournoyer, 2024/11/01
- [bug#74151] [PATCH 6/7] build: marionette: Make it possible to reboot VM during tests., Maxim Cournoyer, 2024/11/01
- [bug#74151] [PATCH 7/7] tests: Add anonip system test., Maxim Cournoyer, 2024/11/01
- [bug#74151] [PATCH v2 1/9] doc: Use @table @code for anonip-configuration doc., Maxim Cournoyer, 2024/11/01
- [bug#74151] [PATCH v2 4/9] tests: web: Have the retry-on-error throw on exhausted attempts., Maxim Cournoyer, 2024/11/01
- [bug#74151] [PATCH v2 2/9] services: anonip: Add 'debug?' configuration field., Maxim Cournoyer, 2024/11/01
- [bug#74151] [PATCH v2 3/9] system/vm: Fix virtual-machine bug., Maxim Cournoyer, 2024/11/01
- [bug#74151] [PATCH v2 7/9] tests: Add anonip system test., Maxim Cournoyer, 2024/11/01
- [bug#74151] [PATCH v2 5/9] services: herd: Export 'eval-there' in API., Maxim Cournoyer, 2024/11/01