From 24a15e9cd3acd7c93efe9755b98897ee8c0476c7 Mon Sep 17 00:00:00 2001 From: James Falcon Date: Wed, 22 Sep 2021 16:30:12 -0500 Subject: docs: update cc_disk_setup for fs to raw disk (#1017) --- cloudinit/config/cc_disk_setup.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cloudinit/config/cc_disk_setup.py b/cloudinit/config/cc_disk_setup.py index 3ec49ca5..440f05f1 100644 --- a/cloudinit/config/cc_disk_setup.py +++ b/cloudinit/config/cc_disk_setup.py @@ -50,15 +50,18 @@ filesystem on may be specified either as a path or as an alias in the format ``.`` where ```` denotes the partition number on the device. The partition can also be specified by setting ``partition`` to the desired partition number. The ``partition`` option may also be set to ``auto``, in -which this module will search for the existance of a filesystem matching the +which this module will search for the existence of a filesystem matching the ``label``, ``type`` and ``device`` of the ``fs_setup`` entry and will skip creating the filesystem if one is found. The ``partition`` option may also be set to ``any``, in which case any file system that matches ``type`` and ``device`` will cause this module to skip filesystem creation for the ``fs_setup`` entry, regardless of ``label`` matching or not. To write a -filesystem directly to a device, use ``partition: none``. A label can be -specified for the filesystem using ``label``, and the filesystem type can be -specified using ``filesystem``. +filesystem directly to a device, use ``partition: none``. ``partition: none`` +will **always** write the filesystem, even when the ``label`` and +``filesystem`` are matched, and ``overwrite`` is ``false``. + +A label can be specified for the filesystem using +``label``, and the filesystem type can be specified using ``filesystem``. .. note:: If specifying device using the ``.`` format, -- cgit v1.2.3