Skip to content

Commit

Permalink
azure-image: apply bootSize only for Gen 2
Browse files Browse the repository at this point in the history
  • Loading branch information
codgician committed Nov 27, 2024
1 parent b5ef96b commit c6f4b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/virtualisation/azure-image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ in
configFile = ./azure-config-user.nix;
format = "raw";

bootSize = "${toString cfg.bootSize}M";
bootSize = lib.mkIf (cfg.vmGeneration == "v2") "${toString cfg.bootSize}M";
partitionTableType = if (cfg.vmGeneration == "v2") then "efi" else "legacy";

inherit (cfg) contents label;
Expand Down

0 comments on commit c6f4b45

Please sign in to comment.