summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Howard <ben.howard@canonical.com>2013-09-27 16:23:01 -0600
committerBen Howard <ben.howard@canonical.com>2013-09-27 16:23:01 -0600
commit8e105ba9e5bf771112ce07d40a2fc18c90d8bf86 (patch)
treeffe6d0f326dbe9b264a49814a72b089e9b242fd1
parent2cb3d6f52c9d1ee803f151c1aacda355974fb083 (diff)
downloadvyos-cloud-init-8e105ba9e5bf771112ce07d40a2fc18c90d8bf86.tar.gz
vyos-cloud-init-8e105ba9e5bf771112ce07d40a2fc18c90d8bf86.zip
Updated the documentation on disk formating
-rw-r--r--doc/examples/cloud-config-disk-setup.txt44
1 files changed, 37 insertions, 7 deletions
diff --git a/doc/examples/cloud-config-disk-setup.txt b/doc/examples/cloud-config-disk-setup.txt
index 19698492..d3129058 100644
--- a/doc/examples/cloud-config-disk-setup.txt
+++ b/doc/examples/cloud-config-disk-setup.txt
@@ -188,13 +188,43 @@ Where:
of the ephemeral storage layer.
<PART_VALUE>: The valid options are:
- "auto": auto is a special in the sense that you are telling cloud-init
- not to care whether there is a partition or not. Auto will put the
- first partition that does not contain a file system already. In
- the absence of a partition table, it will put it directly on the
- disk.
-
- "none": Put the partition directly on the disk.
+ "auto|any": tell cloud-init not to care whether there is a partition
+ or not. Auto will use the first partition that does not contain a
+ file system already. In the absence of a partition table, it will
+ put it directly on the disk.
+
+ "auto": If a file system that matches the specification in terms of
+ label, type and device, then cloud-init will skip the creation of
+ the file system.
+
+ "any": If a file system that matches the file system type and device,
+ then cloud-init will skip the creation of the file system.
+
+ Devices are selected based on first-detected, starting with partitions
+ and then the raw disk. Consider the following:
+ NAME FSTYPE LABEL
+ xvdb
+ ├─xvdb1 ext4
+ ├─xvdb2
+ ├─xvdb3 btrfs test
+ └─xvdb4 ext4 test
+
+ If you ask for 'auto', label of 'test, and file system of 'ext4'
+ then cloud-init will select the 2nd partition, even though there
+ is a partition match at the 4th partition.
+
+ If you ask for 'any' and a label of 'test', then cloud-init will
+ select the 1st partition.
+
+ If you ask for 'auto' and don't define label, then cloud-init will
+ select the 1st partition.
+
+ In general, if you have a specific partition configuration in mind,
+ you should define either the device or the partition number. 'auto'
+ and 'any' are specifically intended for formating ephemeral storage or
+ for simple schemes.
+
+ "none": Put the file system directly on the device.
<NUM>: where NUM is the actual partition number.