2016-01-28 21:37:20 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
# gentoo
|
2020-08-22 00:29:21 +00:00
|
|
|
if [[ "${DIB_INIT_SYSTEM}" == "openrc" ]]; then
|
2016-01-28 21:37:20 +00:00
|
|
|
rc-update add cloud-config default
|
|
|
|
rc-update add cloud-final default
|
2016-10-07 16:16:28 +00:00
|
|
|
rc-update add cloud-init-local boot
|
2016-01-28 21:37:20 +00:00
|
|
|
rc-update add cloud-init default
|
|
|
|
fi
|
2021-12-18 23:51:18 +00:00
|
|
|
|
|
|
|
if [[ "${DIB_INIT_SYSTEM}" == "systemd" ]]; then
|
|
|
|
systemctl enable cloud-config.service
|
|
|
|
systemctl enable cloud-final.service
|
|
|
|
systemctl enable cloud-init-local.service
|
|
|
|
systemctl enable cloud-init.service
|
|
|
|
fi
|