Skip to content

Commit 1057608

Browse files
nikita-dubrovskiijlebon
authored andcommitted
metal: secex: add size of 'se' partition when calculating nonroot partition sizes
1 parent b8958ed commit 1057608

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cmd-buildextend-metal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,11 @@ rootfs_size_mb="$(jq '."estimate-mb".final' "$PWD/tmp/ostree-size.json")"
219219
# the platforms require and we want a "default" disk size that has some
220220
# free space.
221221
nonroot_partition_sizes=513
222-
# In the Secure Execution case, we need to also include the sizes of the verity
222+
# In the Secure Execution case, we need to also include the sizes of the se and verity
223223
# partitions so that they don't "eat into" the 35% buffer (though note this is
224224
# all blown away on first boot anyway).
225225
if [[ $secure_execution -eq "1" ]]; then
226-
nonroot_partition_sizes=$((nonroot_partition_sizes + 128 + 256 + 1))
226+
nonroot_partition_sizes=$((nonroot_partition_sizes + 200 + 128 + 256 + 1))
227227
fi
228228
metal_image_size_mb="$(( rootfs_size_mb + nonroot_partition_sizes ))"
229229
cloud_image_size_mb="$(jq -r ".size*1024" < "${image_json}")"

0 commit comments

Comments
 (0)