We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 117112c commit 1965077Copy full SHA for 1965077
lib/runners/firecracker.nix
@@ -37,13 +37,19 @@ let
37
is_root_device = false;
38
is_read_only = true;
39
io_engine = "Async";
40
- } ] ++ map ({ image, ... }: {
41
- drive_id = image;
42
- path_on_host = image;
43
- is_root_device = false;
44
- is_read_only = false;
45
- io_engine = "Async";
46
- }) volumes;
+ } ] ++ map ({ image, serial, direct, ... }:
+ lib.warnIf (serial != null) ''
+ Volume serial is not supported for firecracker
+ ''
+ lib.warnIf direct ''
+ Volume direct IO is not supported for firecracker
+ '' {
47
+ drive_id = image;
48
+ path_on_host = image;
49
+ is_root_device = false;
50
+ is_read_only = false;
51
+ io_engine = "Async";
52
+ }) volumes;
53
network-interfaces = map ({ type, id, mac, ... }:
54
if type == "tap"
55
then {
0 commit comments