diff --git a/internal/distro/fedora/package_sets.go b/internal/distro/fedora/package_sets.go index ad8b083ce..3ecb219a1 100644 --- a/internal/distro/fedora/package_sets.go +++ b/internal/distro/fedora/package_sets.go @@ -16,7 +16,6 @@ func ec2CommonPackageSet(t *imageType) rpmmd.PackageSet { Include: []string{ "@core", "chrony", - "selinux-policy-targeted", "langpacks-en", "libxcrypt-compat", "xfsprogs", @@ -39,7 +38,6 @@ func qcow2CommonPackageSet(t *imageType) rpmmd.PackageSet { "@Fedora Cloud Server", "chrony", "systemd-udev", - "selinux-policy-targeted", "langpacks-en", }, Exclude: []string{ @@ -64,7 +62,6 @@ func vhdCommonPackageSet(t *imageType) rpmmd.PackageSet { Include: []string{ "@core", "chrony", - "selinux-policy-targeted", "langpacks-en", "net-tools", "ntfsprogs", @@ -90,7 +87,6 @@ func vmdkCommonPackageSet(t *imageType) rpmmd.PackageSet { "@Fedora Cloud Server", "chrony", "systemd-udev", - "selinux-policy-targeted", "langpacks-en", }, Exclude: []string{ @@ -115,7 +111,6 @@ func openstackCommonPackageSet(t *imageType) rpmmd.PackageSet { Include: []string{ "@core", "chrony", - "selinux-policy-targeted", "spice-vdagent", "qemu-guest-agent", "xen-libs", @@ -184,7 +179,6 @@ func iotCommitPackageSet(t *imageType) rpmmd.PackageSet { "procps-ng", "rootfiles", "rpm", - "selinux-policy-targeted", "smartmontools-selinux", "setup", "shadow-utils", diff --git a/internal/manifest/os.go b/internal/manifest/os.go index a2bb421fa..9f3aec25d 100644 --- a/internal/manifest/os.go +++ b/internal/manifest/os.go @@ -152,6 +152,10 @@ func (p *OSPipeline) getPackageSetChain() []rpmmd.PackageSet { packages = append(packages, "chrony") } + if p.SElinux != "" { + packages = append(packages, fmt.Sprintf("selinux-policy-%s", p.SElinux)) + } + chain := []rpmmd.PackageSet{ { Include: append(packages, p.ExtraBasePackages...),