Merge pull request #88470 from evanjs/hyperv-remove-base-diskimage

virtualisation/hyperv-image: remove diskImage after vhdx is generated
This commit is contained in:
Jaka Hudoklin
2020-05-21 02:21:35 +00:00
committed by GitHub

View File

@@ -37,6 +37,7 @@ in {
name = cfg.vmDerivationName;
postVM = ''
${pkgs.vmTools.qemu}/bin/qemu-img convert -f raw -o subformat=dynamic -O vhdx $diskImage $out/${cfg.vmFileName}
rm $diskImage
'';
format = "raw";
diskSize = cfg.baseImageSize;