summaryrefslogtreecommitdiff
path: root/doc/examples/cloud-config-growpart.txt
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-03-05 16:39:23 -0500
committerScott Moser <smoser@ubuntu.com>2013-03-05 16:39:23 -0500
commit90ed3dee9672ba2756dd4a303f94e3de47e70404 (patch)
tree0816042bc12aa7d59a76a4c566dfa406d52ce59c /doc/examples/cloud-config-growpart.txt
parentb4fa42f0cb841b1f096bd8d654eda7230053935c (diff)
parentf9fe61cb0fff4391212c33ff5fc8af7402ad112c (diff)
downloadvyos-cloud-init-90ed3dee9672ba2756dd4a303f94e3de47e70404.tar.gz
vyos-cloud-init-90ed3dee9672ba2756dd4a303f94e3de47e70404.zip
add 'growpart' config module.
This adds support for resizing partition tables for mounted partitions. It thus allows us to remove 'cloud-initramfs-growpart' from running in the initramfs, and do it here instead. That depends on: a.) growpart in cloud-utils 0.2.7 or later or parted with 'resizepart' support b.) kernel 3.8.
Diffstat (limited to 'doc/examples/cloud-config-growpart.txt')
-rw-r--r--doc/examples/cloud-config-growpart.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/examples/cloud-config-growpart.txt b/doc/examples/cloud-config-growpart.txt
new file mode 100644
index 00000000..705f02c2
--- /dev/null
+++ b/doc/examples/cloud-config-growpart.txt
@@ -0,0 +1,24 @@
+#cloud-config
+#
+# growpart entry is a dict, if it is not present at all
+# in config, then the default is used ({'mode': 'auto', 'devices': ['/']})
+#
+# mode:
+# values:
+# * auto: use any option possible (growpart or parted)
+# if none are available, do not warn, but debug.
+# * growpart: use growpart to grow partitions
+# if growpart is not available, this is an error.
+# * parted: use parted (parted resizepart) to resize partitions
+# if parted is not available, this is an error.
+# * off, false
+#
+# devices:
+# a list of things to resize.
+# items can be filesystem paths or devices (in /dev)
+# examples:
+# devices: [/, /dev/vdb1]
+#
+growpart:
+ mode: auto
+ devices: ['/']