On Mon, Aug 3, 2020 at 6:08 AM H.Merijn Brand <linux@tux.freedom.nl> wrote:
Is it plausible to have /tmp = tmpfs with a service that depends on /tmp that mounts /tmp/whatever to /opt/product/workspace on boot?
Just use bind mounts if this a regular user app or systemd unit setting TemporaryFileSystem= if this is a service.
If I can setup such a scheme in a reliable way, I think that I can workaround the problems I mentioned with legacy products wanting to write files to /tmp (and persist there)
I assume that this legacy products cannot be fixed...because it they could be..you better do that and operate under the expected constraints: "programs should not assume that files in /tmp persist between invocations" (currently the system is forgiving and will persist until next reboot (unless it is a system service with privatetmp on) but again nothing should depend on this implementation-specific detail) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org