manifest: add packages required by osbuild stages
Add python3-pyyaml to the build root when the OS pipeline includes the cloud-init stage. Add python3-iniparse to the build root when the OS pipeline includes the dnf.config or rhsm stage. The addition of the stages is detected using the corresponding customizations.
This commit is contained in:
parent
b0574daa90
commit
370a0d1b29
1 changed files with 7 additions and 0 deletions
|
|
@ -190,6 +190,13 @@ func (p *OS) getBuildPackages() []string {
|
|||
packages = append(packages, "policycoreutils")
|
||||
packages = append(packages, fmt.Sprintf("selinux-policy-%s", p.SElinux))
|
||||
}
|
||||
if len(p.CloudInit) > 0 {
|
||||
packages = append(packages, "python3-pyyaml")
|
||||
}
|
||||
if len(p.DNFConfig) > 0 || len(p.RHSMConfig) > 0 {
|
||||
packages = append(packages, "python3-iniparse")
|
||||
}
|
||||
|
||||
return packages
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue