While trying to rpm-ostree update I ran into this error:
error: While pulling fedora/35/x86_64/silverblue: Writing content object: min-free-space-percent ‘3%’ would be exceeded, at least 4.1 kB requested
In my case the 3 % of my filesystem would be more than the 7 GB I had available.
This is how I changed the default setting to something sensible:
sudo nano /ostree/repo/config
I used one of the options found here – add them inside the [core] section with your custom value, eg.:
min-free-space-size=123GB
or min-free-space-percent=1
and probably rpm-ostree reload
I would humbly suggest the Silverblue team to change the default setting to something like min-free-space-size=nGB as 3% can be both too much or too little.
I am getting this same error on Fedora Silverblue 38. However, the file /ostree/repo/config does not exist for me. Does anyone know where that file is located in version 38? (And/or how to find it yourself, regardless of Fedora version?)
OK, thanks for the confirmation, that triggered me to find out I made a stupid mistake: I tried to modify the file from inside a Toolbox, where it’s not available
Now I’m running into the second hurdle, probably again something dumb I’m doing: when I press Ctrl+x in Nano and then Y to save the file, I get the following error:
[ Error writing /ostree/repo/config: Read-only file system ]
How do I actually modify the config options on a running system?
Oh indeed, my bad, we’ve made sysroot read only by default now so you need to use the ostree commands like you did or temporarily remount it read write.
Hmm, could running that command have interfered with starting Toolboxes? I have since restarted my laptop, but when I run toolbox enter <toolbox name> I get
Error: failed to start container
Then when I run podman --log-level debug start <toolbox name>, I see a bunch of output ending in
Error: unable to start container “fd82245e245e33159ad075be7ac55820e7e7cf0ef82baf7e488d50f4e0c8f053”: crun: [conmon:d]: failed to write to /proc/self/oom_score_adj: Permission denied
setrlimit RLIMIT_NPROC: Operation not permitted: OCI permission denied
DEBU[0000] Shutting down engines