diff options
author | Rob Vermaas <rob.vermaas@gmail.com> | 2016-02-17 12:02:52 +0000 |
---|---|---|
committer | Rob Vermaas <rob.vermaas@gmail.com> | 2016-02-17 12:02:52 +0000 |
commit | b2f2d2fef32ea89e8e4dc0a21243e84a6ced43aa (patch) | |
tree | f45ae3792894b3d1e6afaac5454f087325bc5ba5 /nixos/modules/virtualisation/azure-image.nix | |
parent | 1ecb2a8782aa12fdd2745256127331be135733d7 (diff) |
Fix azure image, by adding subformat=fixed to disk generation.
Diffstat (limited to 'nixos/modules/virtualisation/azure-image.nix')
-rw-r--r-- | nixos/modules/virtualisation/azure-image.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/azure-image.nix b/nixos/modules/virtualisation/azure-image.nix index 08944e641d76..7093e50ed352 100644 --- a/nixos/modules/virtualisation/azure-image.nix +++ b/nixos/modules/virtualisation/azure-image.nix @@ -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"; |