82b299bbdf
cloud-init-local needs to be run in the boot runlevel because it modifies services in the default runlevel. When a runlevel is started it is cached, so modifications that happen to the current runlevel while you are in it are not acted upon. Change-Id: Ifeae0071fc9e738ec223ec0df271559ad6e0196b
16 lines
303 B
Bash
Executable File
16 lines
303 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
# gentoo
|
|
if [[ "${DISTRO_NAME}" == "gentoo" ]]; 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
|