-
Notifications
You must be signed in to change notification settings - Fork 304
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
filesystem space checks for /boot/ #1648
Comments
Any update on this? I can look into this if it'd be handy to have. I imagine there would be some way to query the disk space available, then give an error if it is less than the size of the packages to download. @cgwalters what do you think of the complexity of this? |
thanks robert. Funny enough, I actually hit this again today. @cgwalters I know we just discussed that labeling the difficulty of tasks is arbitrary, but I figure I'll ask, do you think this is something @rfairley could pick up with some guidance? |
Had a look into reproducing this - when pinning deployments with different |
Reproduced this after:
Output is:
Now will look into adding a check. Both cases run into the error in postprocessing scripts I think, will start from there:
|
The rpm-ostree code isn't involved here - except when Probably the best approach to fixing this would be to add the size of the kernel/initramfs as metadata on the commit object (along with the |
Ah, thanks! Makes sense, now looking at Can later see if a check at |
Check free space on the filesystem before copying the kernel executable, initramfs, and devicetree into the boot partition. Both the get_kernel_from_tree_usrlib_modules() and get_kernel_from_tree_legacy_layouts() code paths query the size of the kernel, initramfs, and devicetree. If hardlinking fails, then sum up what still needs to be copied, and fail if it is greater than the disk space available. Fixes: ostreedev#1648
hmm. I wonder if #2847 means we can close this? or at least modify the scope. |
I hit a case today where I ran out of disk space on my /boot/ partition. This was mainly because I had pinned some deployments that I wanted to keep around, but I still ended up with a failure:
Here is the status after the failure:
I unpinned a deployment and ran a
rpm-ostree cleanup -r
, so I'm unblocked. This is something to consider, though.The text was updated successfully, but these errors were encountered: