This repository was archived by the owner on Sep 1, 2026. It is now read-only.
Repository navigation
main: --force-defs-dir - #534
Merged
Merged
Conversation
Signed-off-by: Simon de Vlieger <[email protected]>
Previously it was possible to pass a custom definition directory through the use of `IMAGE_BUILDER_EXPERIMENTAL` options. In `images` 0.269.0 I landed a PR [1] that allows us setting the definition path in code. This commit implements that, plus test cases, to pass custom definitions. We keep the argument hidden as we still consider it to be experimental until we flesh out certain things but this *will* allow us to source our default image definitions from disk instead of the embedded filesystem in the near future (a follow up) so consider this the lead-up to that. The argument follows the same naming as others, `force` means to entirely wipe and override the built-ins. In the future there will likely be an `extra` equivalent to extend, or override pre-existing definitions in the same way we do for repositories. We might enable this for build systems in their respective plugins at some point as well. [1]: osbuild/image-builder#2378 Signed-off-by: Simon de Vlieger <[email protected]>
lzap
approved these changes
May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Previously it was possible to pass a custom definition directory through the use of
IMAGE_BUILDER_EXPERIMENTALoptions. Inimages0.269.0 I landed a PR 1 that allows us setting the definition path in code.This commit implements that, plus test cases, to pass custom definitions.
We keep the argument hidden as we still consider it to be experimental until we flesh out certain things but this will allow us to source our default image definitions from disk instead of the embedded filesystem in the near future (a follow up) so consider this the lead-up to that.
The argument follows the same naming as others,
forcemeans to entirely wipe and override the built-ins. In the future there will likely be anextraequivalent to extend, or override pre-existing definitions in the same way we do for repositories.We might enable this for build systems in their respective plugins at some point as well.