Skip to content

Commit

Permalink
Merge pull request #88470 from evanjs/hyperv-remove-base-diskimage
Browse files Browse the repository at this point in the history
virtualisation/hyperv-image: remove diskImage after vhdx is generated
  • Loading branch information
offlinehacker authored May 21, 2020
2 parents 9caecc8 + ef80f34 commit 9d4e349
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/virtualisation/hyperv-image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9d4e349

Please sign in to comment.