Prep patches for storing image.json
in the ostree
#2806
Merged
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.
build: Ensure JSON is sorted for reproducibility
Prep for sticking the rendered
image.json
into the ostree commit;we want reproducibility here to avoid spurious rebuilds.
buildextend-metal: Parse image JSON, not YAML
We're centralizing the input to disk image generation as JSON.
Also, this way we'll correctly honor the defaults.
build: Move
extra-kargs
default intoimage-default.yaml
The
image-default.yaml
file should act as the canonicalreference for possible keys, along with their default values.
build: Checksum image JSON, not YAML
Part of canonically processing the merged JSON so we correctly
honor defaults.
build: Clean up image JSON generation, use it consistently
A few more places were parsing the image YAML, change things
so that we generate the canonicalized/flattened JSON in Python
code that can be called by the Python helpers that want it, and
call that same code as part of the shell script build preparation.
live: Move
squashfs-compression
def intoimage-default.yaml
This YAML file should have the list of all values parsed by
code.