CentOS / centos-bootc

Create and maintain base bootable container images from Fedora ELN and CentOS Stream packages
https://centos.github.io/centos-bootc
Other
45 stars 27 forks source link

system-configuration: Add cloud-utils-growpart #397

Closed cgwalters closed 7 months ago

cgwalters commented 7 months ago

This is a relatively small shell script, and was already split out from cloud-init to support use cases like ours.

systemd-repart is a lot nicer but it isn't yet designed for our use case (root is not Discoverable Partition).

Also systemd-repart doesn't handle LVM which this script tries to support.

(IMO the real solution to stuff like this is either Stratis or equivalent)

cgwalters commented 7 months ago

To use this, execute e.g. growpart /dev/vda 4

cgwalters commented 7 months ago

Also I should have clarified I think the better fix here is for bib to grow the ability to pick the size of the target image (xref https://github.com/osbuild/bootc-image-builder/issues/52 )