dtcooper/RPi Image Modifier
Raspberry Pi OS Image Modifier
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| base-image-url | Base Raspberry Pi OS image URL (required) | yes | — |
| script-path | Path of script to run to modify image (one of script-path or run is required) | no | "" |
| run | Script contents run to modify image (one of script-path or run is required) | no | "" |
| env-vars | Comma-separated environment variables to pass to the script, example: ONE,TWO,THREE | no | "" |
| image-path | What to name the modified image | no | rpi-os-modified.img |
| mount-repository | Temporary mount repository at /mounted-github-repo/ for copying files | no | true |
| compress-with-xz | Compress final image with xz (image-path output will have an .xz extension added) | no | false |
| extra-xz-args | Extra arguments to pass to the xz command | no | "" |
| shrink | Shrink final image using PiShrink (https://github.com/Drewsif/PiShrink) | no | true |
| shell | Shell in container to execute script | no | /bin/bash |
| cache | Cache image file located at base-image-url | no | false |
| image-maxsize | That maximum size of the modified image (needs to fit on disk) | no | 12G |
Outputs
| name | description |
|---|---|
| image-path | Filename of image, will be same as image-path unless compress-with-xz is set in which case it will have a .xz extension |
| image-size | Size of image, as it was before xz compression was optionally applied |
| image-sha256sum | SHA256 sum of image file after xz compression is optionally applied |