0a60b5416c
This patch is enabling and configuring the envrironment for iPXE in Ironic and ironic-discoverd. Change-Id: Id16edb902b2af663c086c27157873e037a215246
13 lines
313 B
Bash
Executable File
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
|