Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
Increase disk size to allow for experiments with upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
fwilhe committed Oct 25, 2023
1 parent 243c683 commit 648ed75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion debian/features/ostreeImage/image.ostree.raw
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ size_uefi=$(du -b "$efi_partition" | awk '{ padded_size = $1 + (MB - ($1 % MB) %
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 5G "$root_partition"
truncate -s 6G "$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
4 changes: 2 additions & 2 deletions gardenlinux/features/ostreeImage/image.ostree.raw
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,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 6G "$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 648ed75

Please sign in to comment.