From 3f922834b8ed953738aa27c3ad855c8731539d2c Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Wed, 20 May 2020 17:59:23 +0530 Subject: [PATCH] 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. --- nixos/lib/make-disk-image.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/lib/make-disk-image.nix b/nixos/lib/make-disk-image.nix index 4806fe9dbac71..8aa606a56af80 100644 --- a/nixos/lib/make-disk-image.nix +++ b/nixos/lib/make-disk-image.nix @@ -71,7 +71,7 @@ let format' = format; in let vdi = "vdi"; vpc = "vhd"; raw = "img"; - }.${format}; + }.${format} or format; rootPartition = { # switch-case legacy = "1";