root@test-zesty-2:~# for target in cloud-init cloud-init.service cloud-init.target; do echo -n $target: ; systemctl is-enabled $target; done
cloud-init:enabled
cloud-init.service:enabled
cloud-init.target:static
root@test-zesty-2:~# systemctl list-dependencies | grep cloud
● ├─cloud-init.target
● │ ├─cloud-config.service
● │ ├─cloud-final.service
● │ ├─cloud-init-local.service
● │ └─cloud-init.service
root@test-zesty-2:~# touch /etc/cloud/cloud-init.disabled
root@test-zesty-2:~# reboot
root@test-zesty-2:~# csmith@downtown:~$ lxc exec test-zesty-2 bash
root@test-zesty-2:~# for target in cloud-init cloud-init.service cloud-init.target; do echo -n $target: ; systemctl is-enabled $target; done
cloud-init:enabled
cloud-init.service:enabled
cloud-init.target:static
root@test-zesty-2:~# systemctl list-dependencies | grep cloud