instack-undercloud/elements/ipxe/post-install.d/86-selinux
Lucas Alvares Gomes 0a60b5416c Ironic: Enable iPXE
This patch is enabling and configuring the envrironment for iPXE in
Ironic and ironic-discoverd.

Change-Id: Id16edb902b2af663c086c27157873e037a215246
2015-05-07 16:30:28 +01:00

13 lines
313 B
Bash
Executable File

#!/bin/bash
set -eux
set -o pipefail
# Install the selinux policy
[ -x /usr/sbin/semanage ] || exit 0
mkdir -p /opt/stack/selinux-policy
# Compile the selinux policy
checkmodule -M -m -o /tmp/ipxe.mod $(dirname $0)/../selinux/ipxe.te
sudo semodule_package -m /tmp/ipxe.mod -o /opt/stack/selinux-policy/ipxe.pp