Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Increase image size for updates
Browse files Browse the repository at this point in the history
  • Loading branch information
fwilhe committed Oct 11, 2023
1 parent 96a2a5a commit 87267b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions features/ostreeImage/image.ostree.raw
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ root_partition=$(mktemp)
partitions=$(mktemp)

# fixme: make disk size dynamic
truncate -s 900M "$efi_partition"
truncate -s 500M "$efi_partition"
# make_reproducible_vfat $OSTREE_SYSROOT/boot "$efi_partition"
make_reproducible_vfat -t 11111111 $boot_dir "$efi_partition"
size_uefi=$(du -b "$efi_partition" | awk '{ padded_size = $1 + (MB - ($1 % MB) % MB); print (padded_size / MB) }' "MB=1048576")
part_uuid_uefi=b0e0359c-007b-4361-a0d1-a7ca2d73fe3c
echo -e "$part_uuid_uefi\tuefi\t$size_uefi\t0\t$efi_partition\tEFI" >> "$partitions"

truncate -s 3G "$root_partition"
truncate -s 5G "$root_partition"
make_reproducible_ext4 -t 11111111 -l ROOT "$MYROOT"/sysroot "$root_partition"
size_rootfs=$(du -b "$root_partition" | awk '{ padded_size = $1 + (MB - ($1 % MB) % MB); print (padded_size / MB) }' "MB=1048576")
part_uuid_rootfs=a9bef950-8218-4888-9f1c-1ad8bb481807
Expand Down

0 comments on commit 87267b4

Please sign in to comment.