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:
Achilleas Koutsou 2022-11-07 15:23:15 +01:00 committed by Christian Kellner
parent b0574daa90
commit 370a0d1b29

View file

@ -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
}