Skip to content

Commit

Permalink
🐛 Fix rpi partition sizes for upgrade (#1786)
Browse files Browse the repository at this point in the history
As we use the state/recovery partition for storing the transition image
during upgrades, on ubuntu the partition sizes did not allow to store
the image properly as they were too small.

This fixes the current sizes for ubuntu based rpi64 images

Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka authored Sep 5, 2023
1 parent 022652c commit a302225
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -692,9 +692,9 @@ arm-image:
ENV RECOVERY_SIZE="10000"
ENV DEFAULT_ACTIVE_SIZE="4500"
ELSE IF [[ "$FLAVOR" =~ ^ubuntu* ]]
ENV STATE_SIZE="6900"
ENV RECOVERY_SIZE="4600"
ENV DEFAULT_ACTIVE_SIZE="2700"
ENV STATE_SIZE="8100" # Has to be DEFAULT_ACTIVE_SIZE * 3 due to upgrade
ENV RECOVERY_SIZE="5400" # Has to be DEFAULT_ACTIVE_SIZE * 2 due to upgrade
ELSE
ENV STATE_SIZE="6200"
ENV RECOVERY_SIZE="4200"
Expand Down Expand Up @@ -735,9 +735,9 @@ prepare-arm-image:
ENV RECOVERY_SIZE="10000"
ENV DEFAULT_ACTIVE_SIZE="4500"
ELSE IF [[ "$FLAVOR" =~ ^ubuntu* ]]
ENV STATE_SIZE="6900"
ENV RECOVERY_SIZE="4600"
ENV DEFAULT_ACTIVE_SIZE="2500"
ENV DEFAULT_ACTIVE_SIZE="2700"
ENV STATE_SIZE="8100" # Has to be DEFAULT_ACTIVE_SIZE * 3 due to upgrade
ENV RECOVERY_SIZE="5400" # Has to be DEFAULT_ACTIVE_SIZE * 2 due to upgrade
ELSE
ENV STATE_SIZE="6200"
ENV RECOVERY_SIZE="4200"
Expand Down

0 comments on commit a302225

Please sign in to comment.