From 43b9a01ea0e982549f82279465fe866ba4008473 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Mon, 9 Jan 2012 23:19:03 +0100 Subject: 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! --- cloudinit/CloudConfig/cc_resizefs.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cloudinit') 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: -- cgit v1.2.3