Repository navigation
distro: tweak the packagesets.Loader() interface (HMS-5820) - #1291
Merged
Merged
Conversation
The current `packagesets.Loader()` takes a single imagetype argument to determine what packagesets to load from YAML. This generally works great but its a challenge for image types like the anaconda installer where we need a different package set for the iso and the os. In fedora we workaround this by re-using the minimal-raw package set for the anaconda installers "os" package set. However in Centos/RHEL this is less straightforward so having the ability to "override" the pkgset name is required.
supakeen
approved these changes
Mar 6, 2025
achilleas-k
approved these changes
Mar 6, 2025
achilleas-k
left a comment
Member
There was a problem hiding this comment.
Approving, but I'd like to consider an alternative. I think that it might be simpler and more flexible to have multiple package sets per image type, keyed by some keywords we define globally like "payload" and "installer".
I could be wrong about this being simpler though. If we only have a couple of these cases, then the solution in this PR is preferable.
Contributor
|
/jira-epic HMS-5284 |
mvo5
added a commit
to mvo5/images
that referenced
this pull request
May 8, 2025
This commit changes the defs.PackageSet loader to return the full map of all static package sets defined for the pipelines. This is needed when we want to move all of the image types into YAML. We currently define in code what image types load from os, container or installer pipelines but that does not translate to pure YAML. Cleanup of osbuild#1291
mvo5
added a commit
to mvo5/images
that referenced
this pull request
May 8, 2025
This commit changes the defs.PackageSet loader to return the full map of all static package sets defined for the pipelines. This is needed when we want to move all of the image types into YAML. We currently define in code what image types load from os, container or installer pipelines but that does not translate to pure YAML. Cleanup of osbuild#1291
mvo5
added a commit
to mvo5/images
that referenced
this pull request
May 9, 2025
This commit changes the defs.PackageSet loader to return the full map of all static package sets defined for the pipelines. This is needed when we want to move all of the image types into YAML. We currently define in code what image types load from os, container or installer pipelines but that does not translate to pure YAML. Cleanup of osbuild#1291
mvo5
added a commit
to mvo5/images
that referenced
this pull request
May 12, 2025
This commit changes the defs.PackageSet loader to return the full map of all static package sets defined for the pipelines. This is needed when we want to move all of the image types into YAML. We currently define in code what image types load from os, container or installer pipelines but that does not translate to pure YAML. This maps "pkgsKey" to their package sets. The map key here is a string that can either be: - "os": packages for the os - "installer": packages for the installer - "container": extra package into an iot container - "blueprint": unused AFAICT - "build": unused AFAICT Note that this does not directly maps to pipeline names but we should look into making it so. Cleanup of osbuild#1291
github-merge-queue Bot
pushed a commit
that referenced
this pull request
May 13, 2025
This commit changes the defs.PackageSet loader to return the full map of all static package sets defined for the pipelines. This is needed when we want to move all of the image types into YAML. We currently define in code what image types load from os, container or installer pipelines but that does not translate to pure YAML. This maps "pkgsKey" to their package sets. The map key here is a string that can either be: - "os": packages for the os - "installer": packages for the installer - "container": extra package into an iot container - "blueprint": unused AFAICT - "build": unused AFAICT Note that this does not directly maps to pipeline names but we should look into making it so. Cleanup of #1291
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.
The current
packagesets.Loader()takes a single imagetype argument to determine what packagesets to load from YAML.This generally works great but its a challenge for image types like the anaconda installer where we need a different package set for the iso and the os. In fedora we workaround this by re-using the minimal-raw package set for the anaconda installers "os" package set. However in Centos/RHEL this is less straightforward so having the ability to "override" the pkgset name is required.
Another trivial split out from #1283
JIRA: HMS-5820