Created
July 15, 2020 17:52
-
-
Save JorgeFrancoIbanez/799de6d2c3649305c7ac8bfc92a0b492 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to disable cloud-init in Ubuntu | |
Prevent start | |
Create an empty file to prevent the service from starting | |
sudo touch /etc/cloud/cloud-init.disabled | |
Uninstall | |
Disable all services (uncheck everything except "None"): | |
dpkg-reconfigure cloud-init | |
Uninstall the package and delete the folders | |
sudo dpkg-reconfigure cloud-init | |
sudo apt-get purge cloud-init | |
sudo rm -rf /etc/cloud/ && sudo rm -rf /var/lib/cloud/ | |
Restart the computer | |
sudo reboot | |
Sources | |
https://cloudinit.readthedocs.io/en/latest/topics/boot.html#generator | |
https://www.blackmoreops.com/2019/04/19/remove-cloud-init-from-ubuntu/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment