Skip to content
This repository was archived by the owner on Sep 1, 2026. It is now read-only.

main: --force-defs-dir - #534

Merged
supakeen merged 2 commits into
osbuild:mainfrom
supakeen:force-defs-path
May 29, 2026
Merged

supakeen merged 2 commits into
osbuild:mainfrom
supakeen:force-defs-path

Conversation

@supakeen

Copy link
Copy Markdown
Member

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.

@supakeen
supakeen requested a review from a team as a code owner May 29, 2026 07:40
supakeen added 2 commits May 29, 2026 09:41
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]>
@supakeen
supakeen requested review from achilleas-k, lzap and thozza May 29, 2026 07:54

@brlane-rht brlane-rht left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@supakeen
supakeen added this pull request to the merge queue May 29, 2026
Merged via the queue into osbuild:main with commit adb4b4c May 29, 2026
39 checks passed
@supakeen
supakeen deleted the force-defs-path branch May 29, 2026 18:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants