Merge pull request #425 from mjg59/master

Build selinux policy
This commit is contained in:
mjg59 2015-07-01 11:37:11 -07:00
commit 28da405b75

View File

@ -298,6 +298,11 @@ finish_image() {
sudo fstrim "${root_fs_dir}/usr" || true sudo fstrim "${root_fs_dir}/usr" || true
fi fi
# Build the selinux policy
if [[ "$BOARD" = amd64* ]]; then
sudo chroot ${root_fs_dir} bash -c "cd /usr/share/selinux/mcs; semodule -i *.pp"
fi
# Sign the kernels after /usr is in a consistent state # Sign the kernels after /usr is in a consistent state
if [[ ${COREOS_OFFICIAL:-0} -ne 1 ]]; then if [[ ${COREOS_OFFICIAL:-0} -ne 1 ]]; then
sudo sbsign --key /usr/share/sb_keys/DB.key \ sudo sbsign --key /usr/share/sb_keys/DB.key \