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:
Emery Hemingway 2020-05-20 17:59:23 +05:30
parent 0645303fb8
commit 3f922834b8
1 changed files with 1 additions and 1 deletions

View File

@ -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";