forked from mirrors/nixpkgs
Fix azure image, by adding subformat=fixed to disk generation.
This commit is contained in:
parent
1ecb2a8782
commit
b2f2d2fef3
|
@ -23,7 +23,7 @@ in
|
|||
postVM =
|
||||
''
|
||||
mkdir -p $out
|
||||
${pkgs.vmTools.qemu}/bin/qemu-img convert -f raw -O vpc $diskImage $out/disk.vhd
|
||||
${pkgs.vmTools.qemu}/bin/qemu-img convert -f raw -O vpc -o subformat=fixed $diskImage $out/disk.vhd
|
||||
rm $diskImage
|
||||
'';
|
||||
diskImageBase = "nixos-image-${config.system.nixosLabel}-${pkgs.stdenv.system}.raw";
|
||||
|
|
Loading…
Reference in a new issue