3
0
Fork 0
forked from mirrors/nixpkgs

Fix azure image, by adding subformat=fixed to disk generation.

This commit is contained in:
Rob Vermaas 2016-02-17 12:02:52 +00:00
parent 1ecb2a8782
commit b2f2d2fef3

View file

@ -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";