mirror mode sets a sticky group on directories- let's say the default is forgetful. The feature should also come with a helper script remember.
The remember script, moves the file/ folder to the persistent path, and changes the group to something not forgetful (default users), and mounts / symlinks.
On clean, all files with the forgetful group are pruned. Empty forgetful directories are pruned.
On boot, just mount everything declared mirror in the persistence equivalent path.
Let me know if this is a won't fix, and I'll just keep my implementation to myself.
I'd like something less restrictive than explicit declaration, but still opt-in. Here's my idea
mirror
mode sets a sticky group on directories- let's say the default isforgetful
. The feature should also come with a helper scriptremember
.The
remember
script, moves the file/ folder to the persistent path, and changes the group to something not forgetful (defaultusers
), and mounts / symlinks.On clean, all files with the
forgetful
group are pruned. Emptyforgetful
directories are pruned. On boot, just mount everything declaredmirror
in the persistence equivalent path.Let me know if this is a won't fix, and I'll just keep my implementation to myself.