diff options
author | Mikhail Tsykalov <tsymsh@gmail.com> | 2020-11-06 12:47:37 +0300 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-11-26 00:05:39 +0100 |
commit | 788df2ecd62d5c2fc0d94928f45c947e6393e20b (patch) | |
tree | c91868513806a53c7780b835fd767282cec31ebe /gnu/services/base.scm | |
parent | 0a1da4652d9bb93d530ca52710f30b5d05a4251d (diff) | |
download | guix-788df2ecd62d5c2fc0d94928f45c947e6393e20b.tar guix-788df2ecd62d5c2fc0d94928f45c947e6393e20b.tar.gz |
mapped-devices: Allow target to be list of strings.
* gnu/system/mapped-devices.scm (<mapped-device>): Rename constructor to
%mapped-device.
[target]: Remove field.
[targets]: New field. Adjust users.
(mapped-device-compatibility-helper, mapped-device): New macros.
(mapped-device-target): New deprecated procedure.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/services/base.scm')
-rw-r--r-- | gnu/services/base.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/services/base.scm b/gnu/services/base.scm index 029df5ac16..3fc4d5f885 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -298,7 +298,8 @@ FILE-SYSTEM." (define (mapped-device->shepherd-service-name md) "Return the symbol that denotes the shepherd service of MD, a <mapped-device>." (symbol-append 'device-mapping- - (string->symbol (mapped-device-target md)))) + (string->symbol (string-join + (mapped-device-targets md) "-")))) (define dependency->shepherd-service-name (match-lambda |