bootstrap-vz/bootstrapvz/plugins/expand_root
2018-04-09 22:27:43 -07:00
..
assets Change location of expand-root script and drop .sh extension 2018-01-20 20:02:30 +01:00
__init__.py fix pylint W0403(relative-import) 2018-02-25 04:12:24 +00:00
manifest-schema.yml Create a plugin for expand_root to replace the internal common task. 2017-01-26 10:18:04 -08:00
README.rst fix some typos in documentation 2017-04-23 16:59:37 +02:00
tasks.py pylint E1608(old-octal-literal) 2018-04-09 22:27:43 -07:00

Expand Root
-----------

This plugin adds support to expand the root partition and filesystem dynamically on boot. It adds a shell script to call growpart and the proper filesystem expansion tool for a given device, partition, and filesystem. The growpart script is part of the cloud-guest-utils package in stretch and jessie-backports. The version of this script in jessie is broken in several ways and so this plugin installs the version from jessie-backports which works correctly. This plugin should not be used in conjunction with common.tasks.initd.AddExpandRoot and common.tasks.initd.AdjustExpandRootScript. It is meant to replace the existing internal common version of expand-root.

Settings
~~~~~~~~

-  ``filesystem_type``: The type of filesystem to grow, one of ext2, ext3, ext4, of xfs.
-  ``root_device``: The root device we are growing, /dev/sda as an example.
-  ``root_partition``: The root partition ID we are growing, 1 (which becomes /dev/sda1). This is specified so you could grow a different partition on the root_device if you have a multi partition setup and because growpart takes the partition number as a separate argument.