diskimage-builder/diskimage_builder/elements/cloud-init/post-install.d/20-enable-cloud-init

16 lines
307 B
Plaintext
Raw Normal View History

#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
# gentoo
if [[ "${DIB_INIT_SYSTEM}" == "openrc" ]]; then
rc-update add cloud-config default
rc-update add cloud-final default
rc-update add cloud-init-local boot
rc-update add cloud-init default
fi