nixos/lib/make-disk-image.nix: abritary format input
Pass unrecognized format types as the output file extension to qemu-img. The motivation is support for "vdi" output.
This commit is contained in:
parent
0645303fb8
commit
3f922834b8
|
@ -71,7 +71,7 @@ let format' = format; in let
|
||||||
vdi = "vdi";
|
vdi = "vdi";
|
||||||
vpc = "vhd";
|
vpc = "vhd";
|
||||||
raw = "img";
|
raw = "img";
|
||||||
}.${format};
|
}.${format} or format;
|
||||||
|
|
||||||
rootPartition = { # switch-case
|
rootPartition = { # switch-case
|
||||||
legacy = "1";
|
legacy = "1";
|
||||||
|
|
Loading…
Reference in New Issue