CentOS6 Selinux-policy-targeted Not Getting Installed Properly From Kickstart

Home » CentOS » CentOS6 Selinux-policy-targeted Not Getting Installed Properly From Kickstart
CentOS No Comments

Hi,

I’m using this kickstart to build a CentOS AMI, https://gist.github.com/andrewklau/9c354a43976d951bdedd

For some reason, selinux isn’t getting installed correctly, on first boot:

$ semodule -B
libsemanage.semanage_link_sandbox: Could not access sandbox base file
/etc/selinux/targeted/modules/tmp/base.pp. (No such file or directory). semodule: Failed!

Proceeding to do anything else selinux related fails as well. The only solution has so far been to yum reinstall selinux-policy-targeted

Anyone know why this could be happening?

Thanks, Andrew