lorax-composer: Install selinux-policy-targeted in images

This is required to ensure that SELinux is configured properly while
building. It fixes the problem with building tar, and should be
installed in the other image types for consistency.

Resolves: rhbz#1645189
(cherry picked from commit 9ac4508135)
This commit is contained in:
Brian C. Lane 2018-11-27 13:56:00 -08:00
parent 4a4a415f88
commit 99d867db65
9 changed files with 9 additions and 5 deletions

View File

@ -42,7 +42,7 @@ sed -i 's/cloud-user/ec2-user/' /etc/cloud/cloud.cfg
%packages %packages
kernel kernel
-dracut-config-rescue -dracut-config-rescue
selinux-policy-targeted
grub2 grub2
chrony chrony

View File

@ -34,5 +34,6 @@ touch /etc/machine-id
%packages --nocore %packages --nocore
# Packages requires to support this output format go here # Packages requires to support this output format go here
policycoreutils policycoreutils
selinux-policy-targeted
# NOTE lorax-composer will add the blueprint packages below here, including the final %end # NOTE lorax-composer will add the blueprint packages below here, including the final %end

View File

@ -357,6 +357,7 @@ syslinux
dracut-config-generic dracut-config-generic
dracut-live dracut-live
generic-logos generic-logos
selinux-policy-targeted
# This package is needed to boot the iso on UEFI # This package is needed to boot the iso on UEFI
shim shim

View File

@ -36,6 +36,7 @@ touch /etc/machine-id
%packages %packages
kernel kernel
-dracut-config-rescue -dracut-config-rescue
selinux-policy-targeted
grub2 grub2
# Make sure virt guest agents are installed # Make sure virt guest agents are installed

View File

@ -33,7 +33,7 @@ touch /etc/machine-id
%packages %packages
kernel kernel
-dracut-config-rescue -dracut-config-rescue
selinux-policy-targeted
grub2 grub2
# NOTE lorax-composer will add the blueprint packages below here, including the final %end # NOTE lorax-composer will add the blueprint packages below here, including the final %end

View File

@ -33,6 +33,7 @@ touch /etc/machine-id
%packages %packages
kernel kernel
-dracut-config-rescue -dracut-config-rescue
selinux-policy-targeted
grub2 grub2
# Make sure virt guest agents are installed # Make sure virt guest agents are installed

View File

@ -34,6 +34,6 @@ touch /etc/machine-id
%packages --nocore %packages --nocore
# Packages requires to support this output format go here # Packages requires to support this output format go here
policycoreutils policycoreutils
selinux-policy-targeted
# NOTE lorax-composer will add the blueprint packages below here, including the final %end # NOTE lorax-composer will add the blueprint packages below here, including the final %end

View File

@ -39,7 +39,7 @@ touch /etc/machine-id
%packages %packages
kernel kernel
-dracut-config-rescue -dracut-config-rescue
selinux-policy-targeted
grub2 grub2
chrony chrony

View File

@ -36,7 +36,7 @@ touch /etc/machine-id
%packages %packages
kernel kernel
-dracut-config-rescue -dracut-config-rescue
selinux-policy-targeted
grub2 grub2
chrony chrony