Disable growpart in cloud-init-disable-resizefs
This disables growpart module in cloud-init, not resizing / partition to maximum disk free size by default. Change-Id: I69984a9141fa8abb12dc5d51bd334f9280deca67
This commit is contained in:
parent
d140cc239a
commit
520e12ec29
@ -4,5 +4,5 @@ cloud-init-disable-resizefs
|
|||||||
|
|
||||||
The cloud-init resizefs module can be extremely slow and will also
|
The cloud-init resizefs module can be extremely slow and will also
|
||||||
unwittingly create a root filesystem that cannot be booted by grub if
|
unwittingly create a root filesystem that cannot be booted by grub if
|
||||||
the underlying partition is too big. This removes it from cloud.cfg,
|
the underlying partition is too big. This removes both resizefs and growpart
|
||||||
putting the onus for resizing on the user post-boot.
|
from cloud.cfg, putting the onus for resizing on the user post-boot.
|
||||||
|
@ -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/^ - growpart$//' /etc/cloud/cloud.cfg
|
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
``cloud-init-disable-resizefs`` will no longer leave ``growpart`` on /
|
||||||
|
partition to enabled in cloud.cfg.
|
Loading…
Reference in New Issue
Block a user