Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions meta-balena-common/classes/image_types_balena.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ def disk_aligned(d, rootfs_size):
return rootfs_size

# The rootfs size is calculated by substracting from the maximum BalenaOS image
# 700 MiB size, the size of all other partitions except the data partition,
# 1340 MiB size, the size of all other partitions except the data partition,
# dividing by 2, and substracting filesystem metadata and reserved allocations
def balena_rootfs_size(d):
boot_part_size = int(d.getVar("BALENA_BOOT_SIZE"))
state_part_size = int(d.getVar("BALENA_STATE_SIZE"))
balena_rootfs_size = int(((700 * 1024) - boot_part_size - state_part_size) / 2)
balena_rootfs_size = int(((1340 * 1024) - boot_part_size - state_part_size) / 2)
return int(disk_aligned(d, balena_rootfs_size))

BALENA_BOOT_FS_LABEL ?= "resin-boot"
Expand Down
Loading