Additions to assist with pi-gen image customisation #790
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @XECDesign
Here's a small set of commits plus introduction of an examples directory to help jump start projects, or to highlight anything in pi-gen we think would be valuable to users. We can add to examples/ as we see fit.
Supporting a postrun hook when processing stages allows a user to execute operations in that stage after all sub-stage actions have been executed.
The addition of EXPORT_CONFIG_DIR allows a user to define their own actions for image creation rather than using/editing the defaults. By using STAGE_LIST and EXPORT_CONFIG_DIR, a user has complete control over their image construction and generation without having to worry about rebasing/merging things when we make changes in the defaults.
The addition of bootstrap64 is to add a 64-bit debootstrap install wrapper so that a user can create a 64-bit custom image without having to switch to the arm64 branch. I think whoever invokes this (eg from a custom stage) should take responsibility of being able to run it on the Host, or I can a 'suitability test' to it if you'd prefer.
examples/min64 is a generic 64-bit target system with limited functionality, intended to serve as an example for users wishing to create a light-weight system.
Comments and feedback welcome.
Cheers,
-- Matt