-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow rootfs optionally >10G in images #3955
Comments
I was finally filing some PRs from my older private fork, and this was one of the issues I had encountered and fixed. Looking at more recent changes, it looks like the entire |
From #3956 (comment) This was a bug on a historical version of |
Feature Request
Support image rootfs >10G.
Currently the size of the rootfs partition in images is set when
supermin
is generating it during therunvm()
function insrc/cmdlib.sh
. This is hardcoded to 10G.Customized builds that add more packages or files can easily end up with an ostree >10G.
Desired Feature
Support rootfs of images >10G, possibly a configurable size.
Example Usage
If many files or large files are added as additional RPMs, populated via overlays, added as overrides, or eventually included somehow as physically-bound container images, the final ostree commit easily ends up exceeding
10G
.Other Information
While ideally it should probably be a key in the
image.yaml
file to set this or the ostree on-disk size should be calculated and used with some additional buffer size, a much simpler solution is to add aCOSA_SUPERMIN_SIZE
optional environment variable that defaults to the current10G
but can be set by the caller. This is consistent with the already existingCOSA_SUPERMIN_MEMORY
optional environment variable used in the same code to set the memory for thekola qemuexec
call on thesupermin
-generated output.While seemingly related, the
image.yaml
size:
key sets the max size of the dynamically allocated qcow2 virtual disk image. But the content in the qcow2 virtual disk image is created by runningsupermin
to generate an initrd, kernel, and rootfs, and then inserting those into the qcow2 virtual disk as partitions. The existing logic that adds these to the qcow2 image already seems to support dynamically determining how big the rootfs is by looking at thesupermin
-generated rootfs file. So the only problem is that we specify a hardcoded10G
to thesupermin
command for the size of the rootfs to create before we proceed to put the ostree in it.The text was updated successfully, but these errors were encountered: