9f46c3ba0c
Adds support for Ubuntu and Debian to ironic-python-agent. This will enable building ramdisk with Ubuntu and Debian as base OS. Updated README to further clarify what the element does. Change-Id: I194f85b051974d8ccb197a0993a67761046cfe98
29 lines
543 B
Bash
Executable File
29 lines
543 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
install-packages -e python-dev git cloud-init
|
|
rm -rf /tmp/ironic-python-agent
|
|
|
|
case "$DIB_INIT_SYSTEM" in
|
|
upstart)
|
|
if [ -f /etc/init/ufw.conf ]; then
|
|
mv /etc/init/ufw.conf /etc/init/ufw.conf.disabled
|
|
fi
|
|
;;
|
|
systemd)
|
|
systemctl disable iptables.service
|
|
;;
|
|
sysv)
|
|
update-rc.d iptables disable
|
|
;;
|
|
*)
|
|
echo "Unsupported init system"
|
|
exit 1
|
|
;;
|
|
esac
|