Comment 9 for bug 1848923

Revision history for this message
Martin Pitt (pitti) wrote :

Indeed all our images clear up /var/cache [1]. Sorry, I forgot about this bit before! An admin should always be able to rm -rf /var/cache, reboot, and get a fully working system [2]. So if the pollinate data is in any way precious, it should better be in /var/lib/pollinate then (similar to /var/lib/systemd/random-seed).

So indeed it seems that CacheDirectory= will be at least *a* fix, or moving to StateDirectory= and moving the file to /var/lib/pollinate/ if it's precious.

Thanks Christian for your help here! And sorry for my unnecessarily harsh words in comment #5, I should not have assumed that it was broken everywhere. 🤭

[1] https://github.com/cockpit-project/bots/blob/master/images/scripts/lib/zero-disk.setup#L42
[2] https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s05.html