diskimage-builder/diskimage_builder/elements/ibft-interfaces/post-install.d/70-init-ibft-interfaces
Dmitry Tantsur f0f3e3bac4 Add an element to configure iBFT network interfaces
This allows nodes with remote devices configured via iBFT to be
correctly used during Ironic introspection and deployment,
at least for non-multipath configurations.

The new element is added as a dependency for ironic-agent.

Change-Id: If3dac6504d26535593f12e851092065b688ef696
2018-11-20 14:11:11 +01:00

23 lines
394 B
Bash
Executable File

#!/bin/bash
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
case "$DIB_INIT_SYSTEM" in
upstart)
;;
systemd)
systemctl enable init-ibft-interfaces.service
;;
sysv)
update-rc.d init-ibft-interfaces.init defaults
;;
*)
echo "Unsupported init system $DIB_INIT_SYSTEM"
exit 1
;;
esac