distro: add YumConfig to ImageConfig

Not adding the actual option to any existing pipelines, since this is
only going to be relevant for rhel7.
This commit is contained in:
Christian Kellner 2022-05-29 16:52:20 +02:00
parent 42038ad47b
commit 13ce6140b9

View file

@ -44,6 +44,7 @@ type ImageConfig struct {
WAAgentConfig *osbuild2.WAAgentConfStageOptions
Grub2Config *osbuild2.GRUB2Config
DNFAutomaticConfig *osbuild2.DNFAutomaticConfigStageOptions
YumConfig *osbuild2.YumConfigStageOptions
YUMRepos []*osbuild2.YumReposStageOptions
Firewall *osbuild2.FirewallStageOptions
UdevRules *osbuild2.UdevRulesStageOptions
@ -132,6 +133,9 @@ func (c *ImageConfig) InheritFrom(parentConfig *ImageConfig) *ImageConfig {
if finalConfig.DNFAutomaticConfig == nil {
finalConfig.DNFAutomaticConfig = parentConfig.DNFAutomaticConfig
}
if finalConfig.YumConfig == nil {
finalConfig.YumConfig = parentConfig.YumConfig
}
if finalConfig.YUMRepos == nil {
finalConfig.YUMRepos = parentConfig.YUMRepos
}