Skip to content

Commit 57bcd5c

Browse files
committed
crosvm: add volume serial and direct config
1 parent 960b16e commit 57bcd5c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/runners/crosvm.nix

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,14 @@ in {
9292
"-s" socket
9393
]
9494
++
95-
builtins.concatMap ({ image, ... }:
96-
[ "--rwdisk" image ]
95+
builtins.concatMap ({ image, direct, serial, ... }:
96+
[ "--block"
97+
"${image},o_direct=${
98+
if direct then "true" else "false"
99+
}${
100+
lib.optionalString (serial != null) ",id=${serial}"
101+
}"
102+
]
97103
) volumes
98104
++
99105
builtins.concatMap ({ proto, tag, source, ... }:

0 commit comments

Comments
 (0)