Skip to content

Commit

Permalink
reduce parititon size for raspberry pi image
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Nov 5, 2024
1 parent bc82af1 commit 13ccce4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ jobs:
echo "export ROOT_PWD=${{ secrets.ROOT_PASSWORD }}" >> config
echo "export SSH_PUB_KEY='${{ secrets.SSH_KEY }}'" >> config
echo "export FEEDER_IMAGE_NAME=${feeder_image_name}" >> config
echo "export IMG_NAME=${IMG_NAME}" >> config
echo "feeder_image_name=${feeder_image_name}" >> $GITHUB_OUTPUT
# finally, try one more time to have ALL the tags - to avoid weird errors in the code
# creating the version name - and also update `latest` in case that was wrong as well
Expand Down
6 changes: 6 additions & 0 deletions src/build_dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

source "${DIR}/config"

# make raspberry pi image as mall as we can
if [[ "$IMG_NAME" == "raspberrypi64-pi-2-3-4-5" ]]; then
export BASE_IMAGE_ENLARGEROOT=0
export BASE_IMAGE_RESIZEROOT=0
fi

export DIST_PATH=${DIR}
export CUSTOM_PI_OS_PATH=$(<"${DIR}/custompios_path")
export PATH=$PATH:$CUSTOM_PI_OS_PATH
Expand Down

0 comments on commit 13ccce4

Please sign in to comment.