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:
parent
42038ad47b
commit
13ce6140b9
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue