diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-01-09 23:19:03 +0100 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-01-09 23:19:03 +0100 |
commit | 43b9a01ea0e982549f82279465fe866ba4008473 (patch) | |
tree | 53fba3cb57530b2824c15ab68c580dc1744e9a71 /cloudinit/CloudConfig | |
parent | 7292e8aabf196492d391e73db8bd7346d11b0e63 (diff) | |
download | vyos-cloud-init-43b9a01ea0e982549f82279465fe866ba4008473.tar.gz vyos-cloud-init-43b9a01ea0e982549f82279465fe866ba4008473.zip |
run resizefs module on every boot
on EC2, you can:
stop instance
resize root volume
start instance
Currently, the partition would get grown correctly in the initramfs, but
the root filesystem will not get automatically resized in that case as it
only runs per_instance.
This should not be harmfull in any case, as resizefs will just report
nothing to do:
$ sudo resize2fs /dev/sda5
resize2fs 1.42-WIP (16-Oct-2011)
The filesystem is already 25600278 blocks long. Nothing to do!
Diffstat (limited to 'cloudinit/CloudConfig')
-rw-r--r-- | cloudinit/CloudConfig/cc_resizefs.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cloudinit/CloudConfig/cc_resizefs.py b/cloudinit/CloudConfig/cc_resizefs.py index 883c269b..33a0d313 100644 --- a/cloudinit/CloudConfig/cc_resizefs.py +++ b/cloudinit/CloudConfig/cc_resizefs.py @@ -21,6 +21,9 @@ import traceback import os import stat import tempfile +from cloudinit.CloudConfig import per_always + +frequency = per_always def handle(name,cfg,cloud,log,args): if len(args) != 0: |