mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
virtualisation/disk-image: fix image.extension
(cherry picked from commit b033e0c4b6)
This commit is contained in:
committed by
github-actions[bot]
parent
43e97212f6
commit
f1ddf462ce
@@ -50,7 +50,7 @@ in
|
||||
};
|
||||
|
||||
system.nixos.tags = [ cfg.format ] ++ lib.optionals cfg.efiSupport [ "efi" ];
|
||||
image.extension = cfg.format;
|
||||
image.extension = if cfg.format == "raw" then "img" else cfg.format;
|
||||
system.build.image = import ../../lib/make-disk-image.nix {
|
||||
inherit lib config pkgs;
|
||||
inherit (config.virtualisation) diskSize;
|
||||
|
||||
Reference in New Issue
Block a user