Skip to content

Commit 11aceea

Browse files
committed
kvmtool: add volume direct config
1 parent 57bcd5c commit 11aceea

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

lib/runners/kvmtool.nix

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,15 @@ in {
3838
++
3939
lib.optionals (balloonMem > 0) [ "--balloon" ]
4040
++
41-
builtins.concatMap ({ image, ... }:
42-
[ "-d" (lib.escapeShellArg image) ]
41+
builtins.concatMap ({ image, serial, direct, ... }:
42+
lib.warnIf (serial != null) ''
43+
Volume serial is not supported for kvmtool
44+
''
45+
[ "-d"
46+
(lib.escapeShellArg "image${
47+
lib.optionalString direct ",direct"
48+
}")
49+
]
4350
) volumes
4451
++
4552
builtins.concatMap ({ proto, source, tag, ... }:

0 commit comments

Comments
 (0)