Skip to content

Commit 3c5a644

Browse files
authored
amazon-image: Increase disk size, Remove tags from label - use version only (#408682)
2 parents e5e6021 + 813d0ba commit 3c5a644

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

nixos/maintainers/scripts/ec2/amazon-image.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ in
8383

8484
# Use a priority just below mkOptionDefault (1500) instead of lib.mkDefault
8585
# to avoid breaking existing configs using that.
86-
config.virtualisation.diskSize = lib.mkOverride 1490 (3 * 1024);
86+
config.virtualisation.diskSize = lib.mkOverride 1490 (4 * 1024);
8787
config.virtualisation.diskSizeAutoSupported = !config.ec2.zfs.enable;
8888

8989
config.system.nixos.tags = [ "amazon" ];
@@ -140,15 +140,15 @@ in
140140
echo "file ${cfg.format} $rootDisk" >> $out/nix-support/hydra-build-products
141141
142142
${pkgs.jq}/bin/jq -n \
143-
--arg system_label ${lib.escapeShellArg config.system.nixos.label} \
143+
--arg system_version ${lib.escapeShellArg config.system.nixos.version} \
144144
--arg system ${lib.escapeShellArg pkgs.stdenv.hostPlatform.system} \
145145
--arg root_logical_bytes "$(${pkgs.qemu_kvm}/bin/qemu-img info --output json "$rootDisk" | ${pkgs.jq}/bin/jq '."virtual-size"')" \
146146
--arg boot_logical_bytes "$(${pkgs.qemu_kvm}/bin/qemu-img info --output json "$bootDisk" | ${pkgs.jq}/bin/jq '."virtual-size"')" \
147147
--arg boot_mode "${amiBootMode}" \
148148
--arg root "$rootDisk" \
149149
--arg boot "$bootDisk" \
150150
'{}
151-
| .label = $system_label
151+
| .label = $system_version
152152
| .boot_mode = $boot_mode
153153
| .system = $system
154154
| .disks.boot.logical_bytes = $boot_logical_bytes
@@ -181,13 +181,13 @@ in
181181
echo "file ${cfg.format} $diskImage" >> $out/nix-support/hydra-build-products
182182
183183
${pkgs.jq}/bin/jq -n \
184-
--arg system_label ${lib.escapeShellArg config.system.nixos.label} \
184+
--arg system_version ${lib.escapeShellArg config.system.nixos.version} \
185185
--arg system ${lib.escapeShellArg pkgs.stdenv.hostPlatform.system} \
186186
--arg logical_bytes "$(${pkgs.qemu_kvm}/bin/qemu-img info --output json "$diskImage" | ${pkgs.jq}/bin/jq '."virtual-size"')" \
187187
--arg boot_mode "${amiBootMode}" \
188188
--arg file "$diskImage" \
189189
'{}
190-
| .label = $system_label
190+
| .label = $system_version
191191
| .boot_mode = $boot_mode
192192
| .system = $system
193193
| .logical_bytes = $logical_bytes

0 commit comments

Comments
 (0)