Merge "Add element to disable cloud-init resizefs"

This commit is contained in:
Jenkins 2015-08-06 02:01:44 +00:00 committed by Gerrit Code Review
commit c2b96259a4
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,7 @@
Disable cloud-init's resizefs module
------------------------------------
The cloud-init resizefs module can be extremely slow and will also
unwittingly create a root filesystem that cannot be booted by grub if
the underlying partition is too big. This removes it from cloud.cfg,
putting the onus for resizing on the user post-boot.

View File

@ -0,0 +1,9 @@
#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
sed -ie 's/^ - resizefs$//' /etc/cloud/cloud.cfg