diff options
Diffstat (limited to 'sysvinit/gentoo/cloud-init-local')
-rwxr-xr-x | sysvinit/gentoo/cloud-init-local | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sysvinit/gentoo/cloud-init-local b/sysvinit/gentoo/cloud-init-local index 0f8cf65c..4ea92b46 100755 --- a/sysvinit/gentoo/cloud-init-local +++ b/sysvinit/gentoo/cloud-init-local @@ -8,6 +8,13 @@ depend() { } start() { - cloud-init init --local + if grep -q 'cloud-init=disabled' /proc/cmdline; then + ewarn "$RC_SVCNAME is disabled via /proc/cmdline." + elif test -e /etc/cloud/cloud-init.disabled; then + ewarn "$RC_SVCNAME is disabled via cloud-init.disabled file" + else + cloud-init init --local + fi + eend 0 } |