diff options
Diffstat (limited to 'sysvinit/freebsd/cloudinitlocal')
-rwxr-xr-x | sysvinit/freebsd/cloudinitlocal | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sysvinit/freebsd/cloudinitlocal b/sysvinit/freebsd/cloudinitlocal index d6c3579e..87d8ee16 100755 --- a/sysvinit/freebsd/cloudinitlocal +++ b/sysvinit/freebsd/cloudinitlocal @@ -17,8 +17,14 @@ start_cmd="cloudlocal_start" cloudlocal_start() { - echo -n "${command} starting" - ${command} init --local + echo -n "${command} starting" + if kenv -q kernel_options | grep -q 'cloud-init=disabled'; then + warn "cloud-init is disabled via kernel_options." + elif test -e /etc/cloud/cloud-init.disabled; then + warn "cloud-init is disabled via cloud-init.disabled file." + else + ${command} init --local + fi } load_rc_config 'cloudinit' |