Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shrinking filesystem after provisioning #168

Open
sassanh opened this issue Feb 12, 2024 · 0 comments
Open

Shrinking filesystem after provisioning #168

sassanh opened this issue Feb 12, 2024 · 0 comments

Comments

@sassanh
Copy link

sassanh commented Feb 12, 2024

When I create an image based on rpi-bookworm-lite-arm64 which is ~450MB in xz format and ~2.6GB when uncompressed, the filesystem doesn't have enough room for provisioning commands I run (simple commands like apt install ...)
So I set the target image size to 3.5GB and all goes well, but then the created image is ~1.25GB when gzipped.

Currently I'm thinking maybe I can run apt clean to remove Debian package files and apt caches and then run zerofree on the filesystem and it should help gzip to compress the image much more. Is it ok or is there any official method for dealing with this issue in packer or packer-plugin-arm-image?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant