Repository navigation
Conversation
Collaborator
|
This PR changes the images API or behaviour causing integration failures with osbuild-composer. The next update of the images dependency in osbuild-composer will need work to adapt to these changes. This is simply a notice. It will not block this PR from being merged. |
mvo5
commented
May 5, 2025
|
|
||
| func imageConfig(d distribution, imageType string) *distro.ImageConfig { | ||
| // arch is currently not used in fedora | ||
| arch := "" |
Contributor
Author
There was a problem hiding this comment.
This should probably still be wired up or there will be a surprise if we try to use it.
When validating paths in the fsnode module, use the `filepath` module instead of the (more generic) `path`.
When we move `ImageConfig` into YAML we will need support for
`fsnode.{Dir,File}` as it is used as part of the ImageConfig.
This commit adds support for JSON/YAML unmarshaling.
This commit adds a new `defs.ImageConfig()` to load per image
type specific image config loading. This allows to write:
```yaml
image_types:
test_type:
image_config:
locale: "C.UTF-8"
timezone: "DefaultTZ"
condition:
version_less_than:
"2":
timezone: "OverrideTZ"
```
This commit moves the `ImageConfig` of each package into the distro.yaml.
Contributor
Author
|
Closing in favor of #1508 |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
[draft until https://github.com//pull/1500 is merged]
This a cleaned up split-out of #1462 - it moves the image configuration for fedora into YAML. It only needs #1500 as its prerequisite.
This commit moves the
ImageConfigof each package into thedistro.yaml.
defs: implement
defs.ImageConfig()for image config loadingThis commit adds a new
defs.ImageConfig()to load per imagetype specific image config loading. This allows to write: