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
commit 9d4e349f6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;