-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support optimizing (shrinking) bootable partitions on images with GPT…
… partition tables (#117) * Fix bug #116 by resizing boot partition instead of deleting and recreating it
- Loading branch information
Showing
3 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Test shrink_bootable_partition | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'releases/**' | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
optimized: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./ # pguyot/arm-runner-action@HEAD | ||
id: shrink | ||
with: | ||
base_image: https://github.com/Joshua-Riek/ubuntu-rockchip/releases/download/v2.2.1/ubuntu-24.04-preinstalled-server-arm64-orangepi-5.img.xz | ||
optimize_image: yes | ||
commands: | | ||
echo "Shrink Bootable Partition" | ||
- name: Check image | ||
run: | | ||
parted --script ${{ steps.shrink.outputs.image }} print free | tail -n2 | head -n1 | grep -c "boot, esp" | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters