mkaczanowski / packer-builder-arm

Packer plugin to build ARM images
Apache License 2.0
312 stars 100 forks source link

Add repartition mode #329

Open davejbax opened 8 months ago

davejbax commented 8 months ago

Description

This PR creates a new image build method, repartition, which doesn't add much (or any, really) new functionality, but rather re-uses existing steps, effectively combining the new and resize methods.

This allows the user to, using a raw image file as a basis:

This is something that was especially useful in my particular use-case, but I think it could be useful more widely as well, hence this PR :)

Use-cases

Backwards compatibility

I've tried to make this change entirely backwards-compatible, so that no existing builds will be affected by it.

To do this: