-
Bug
-
Resolution: Unresolved
-
Undefined
-
rhel-9.4
-
None
-
Important
-
ZStream
-
rhel-sst-bootc
-
13
-
None
-
QE ack
-
False
-
-
Yes
-
None
-
Approved Blocker
-
None
-
None
-
Known Issue
-
-
Done
-
None
When creating an AMI or qcow2 using bootc-image-builder from the base container image (without including cloud-init), the root filesystem size is not expanded dynamically on boot to the full size of the provisioned virtual disk.
Upstream tracker: https://github.com/CentOS/centos-bootc/issues/394
Workarounds:
- Include custom logic in the container image to expand the root
- Include custom logic to use the additional space for secondary filesystems (e.g. `/var/lib/containers`)
Note also that cloud-init (if added to an image) will not grow the root: https://issues.redhat.com/browse/RHEL-34859
Note that by default, the physical root storage is mounted at /sysroot.
Example custom logic to expand root:
/usr/bin/growpart /dev/vda 4 unshare -m /bin/sh -c 'mount -o remount,rw /sysroot && xfs_growfs /sysroot'