-
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
kickstart: enable prjquota for quota enablement #303
Conversation
not sure why but the changes as is don't seem to be working for me. They make it into the then project quotas are enabled and I see some output from
good reference: https://www.thegeekdiary.com/how-to-enable-disk-quotas-on-an-xfs-file-system/ Should we enable group and user quota support in addtion to project quota support? |
i'm guessing I'll need to go digging into the initrd to find the answer |
Yeah, that's a known thing; the problem is the flag needs to be set on the initial mount, and we don't have our |
yeah - I can test that. Considering our partitioning is fixed are there any issues with doing that that you know of? |
actually this won't work. We generate the initramfs when we generate the ostree, but the fstab gets created by anaconda during initial boot. I think we should just use the |
Yeah; we could change the ostree to include it though. Which would make more sense once we're not using anaconda.
Yeah, fine by me for now. Main downside with that is we don't have a good way to remove/upgrade kargs after shipping right now. |
This enables platforms like kubernetes to limit the storage of containers so malicious actors in a multi-tenant environment can't eat up a ton of storage. We can't do this in the fstab because the option needs to be enabled on the initial mount (during initramfs) and our initramfs files are generated during ostree generation so we'll use rootflags kernel arg for now. https://bugzilla.redhat.com/show_bug.cgi?id=1658386
meaning no way to change them when we ship a new ostree (i.e. upgrade)? With ostreedev/ostree#479 would we be able to keep knowledge about default provided kernel args and allow them to be changed over time when a new ostree gets shipped? |
pushed ⬆️ using rootflags |
Yeah although a specific issue for this kernel argument is...what are the semantics if e.g. we decide to stop enabling quota? Can we later re-enable it? But yeah, we need to implement that ostree issue at some point in general. |
LGTM |
Backporting the changes. |
This enables platforms like kubernetes to limit the storage of
containers so malicious actors in a multi-tenant environment
can't eat up a ton of storage.
https://bugzilla.redhat.com/show_bug.cgi?id=1658386