distro/rhel8: label the build root
We require the right SELinux labels to be set on some of the tools we use, make sure the policy is installed and the labels applied in the buildroot, in the same way as in the target image. Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
parent
5c3f4193e5
commit
cbf19d1319
1 changed files with 2 additions and 0 deletions
|
|
@ -304,6 +304,7 @@ func (t *imageType) pipeline(c *blueprint.Customizations, options distro.ImageOp
|
|||
func (t *imageType) buildPipeline(repos []rpmmd.RepoConfig, arch architecture, buildPackageSpecs []rpmmd.PackageSpec) *osbuild.Pipeline {
|
||||
p := &osbuild.Pipeline{}
|
||||
p.AddStage(osbuild.NewRPMStage(t.rpmStageOptions(arch, repos, buildPackageSpecs)))
|
||||
p.AddStage(osbuild.NewSELinuxStage(t.selinuxStageOptions()))
|
||||
return p
|
||||
}
|
||||
|
||||
|
|
@ -865,6 +866,7 @@ func New() distro.Distro {
|
|||
"policycoreutils",
|
||||
"python36",
|
||||
"qemu-img",
|
||||
"selinux-policy-targeted",
|
||||
"systemd",
|
||||
"tar",
|
||||
"xfsprogs",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue