Merge pull request #88470 from evanjs/hyperv-remove-base-diskimage
virtualisation/hyperv-image: remove diskImage after vhdx is generated
This commit is contained in:
commit
9d4e349f6c
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue