mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
amazon-image: fix image.extension value for vpc/vhd files
vpc files use the extension "vhd". `make-disk-image-nix` contains a
lookup table, but does not expose that. vpc is the only format
supported by the amazon image which is affected. Format and extension
are the same for raw and qcow2.
(cherry picked from commit 8cbc6d6da6)
This commit is contained in:
committed by
github-actions[bot]
parent
d1fb78acc1
commit
f39940f568
@@ -88,7 +88,7 @@ in
|
||||
|
||||
config.system.nixos.tags = [ "amazon" ];
|
||||
config.system.build.image = config.system.build.amazonImage;
|
||||
config.image.extension = cfg.format;
|
||||
config.image.extension = if cfg.format == "vpc" then "vhd" else cfg.format;
|
||||
|
||||
config.system.build.amazonImage =
|
||||
let
|
||||
|
||||
Reference in New Issue
Block a user