Cloud
Setup custom disk layout on a cloud image with cloud-init
By default cloud-init grows pre build cloud image to span the whole underlying disk image. It uses “Growpart” module for that purpose and disabling it’s actions requires custom module setting:
growpart: mode: off
Cloud instance’s disk image will now have unresized root partition and unallocated free space which can be used to setup additional partitions. Rootfs needs to be grown to some sane size manually.
Cloud-init includes two modules for setting up disks: disk_setup and fs_setup. The’re run after the growpart module however, hence they cannot be used in this case. A manual action of some sorts for that purpose is needed.









