|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /usr/src/cloud-init/doc/rtd/howto/ |
Upload File : |
.. _disable-Cloud_init:
How to disable cloud-init
*************************
One may wish to disable cloud-init to ensure that it doesn't do anything on
subsequent boots. Some parts of cloud-init may run once per boot otherwise.
There are two cross-platform methods of disabling ``cloud-init``.
Method 1: text file
====================
To disable cloud-init, create the empty file
:file:`/etc/cloud/cloud-init.disabled`. During boot the operating system's init
system will check for the existence of this file. If it exists, cloud-init will
not be started.
Example:
.. code-block::
$ touch /etc/cloud/cloud-init.disabled
Method 2: kernel commandline
============================
To disable cloud-init, add ``cloud-init=disabled`` to the kernel commandline.
Example (using GRUB2 with Ubuntu):
.. code-block::
$ echo 'GRUB_CMDLINE_LINUX=cloud-init.disabled' >> /etc/default/grub
$ grub-mkconfig -o /boot/efi/EFI/ubuntu/grub.cfg
.. note::
When running in containers, ``cloud-init`` will read an environment
variable named ``KERNEL_CMDLINE`` in place of a kernel commandline.