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 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1848923 Title: pollinate.service fails to start: ERROR: should execute as the [pollinate] user -- missing CacheDirectory= To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pollinate/+bug/1848923/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs