Fix again snapshots saving /var
See this blog post a couple of days ago:
- Fix snapshots not saving /var — January 28, 2025
Caramel reported a problem with that fix, so had another go at it, see github:
https://github.com/bkauler/woofq/commit/c7d9770cf0140a154203a621b5d824e1e3adf0a0
I have also included a test if /var is a symlink; in that case, exclude all of /var. Earlier versions of EasyOS had /var as a symlink into /tmp/var, with /tmp a mounted tmpfs. Then subfolders in /tmp/var where symlinks to actual folders inside /root
A bit convoluted, but if I ever decide to go that way again, might as well have the code that detects that situation, /var being a symlink.
Note, the rationale for /var being a symlink was before changed
Easy to run in RAM, when there were direct writes to the
working-partition. This arrangement reduced writes to the storage
media.
Tags: easy