4 ms·
/tmp is often not tmpfs, in fact. /dev/shm or /var/run are.
by dataflow 2y ago
/tmp is often not tmpfs, in fact. /dev/shm or /var/run are.
- bravetraveler 2y agoYes, and? It still is very common to find. Turns out things aren't homogeneous. People often both die forever-alone and happily married, too. I already said it's up to the distribution. I wasn't really interested in splitting it more than I have, I hoped to avoid it... but let's go. It's been upstream over a decade https://github.com/systemd/systemd/commits/main/units/tmp.mount https://github.com/systemd/systemd/commits/main/units/tmp.mo... Participation, as always, has been/remains optional. Anything using 'systemd' will likely have this be 'tmpfs', unless 'ConditionPathIsSymbolicLink' is violated. Anything not using 'systemd' is a niche that most of the industry ignores. See how uninsightful/unhelpful these statements are? More specifically, this leaves the one directive/condition to consider... and a subset of a subset that's relevant - systems using runit/s6/whatever. Anyway, that's the fun thing about 'often'. It both often is and isn't. Put simply, word games. We're both right, '/tmp' often is and isn't 'tmpfs'. It's an implementation detail. It's codified into some standards, and it turns out some distributions are more prepared/cognizant than others. The inconsistency in applying this makes the assertion that lead to this whole thread off base. edit: I originally mistook the last edit two years ago for the creation time - adjusted. This has been established for ~14 years!
- dataflow 2y ago> Anything not using 'systemd' is a niche that most of the industry ignores. See how uninsightful/unhelpful these statements are? Ubuntu uses systemd. And yet it doesn't use tmpfs for /tmp. I literally just even installed 24.04 right now (new LTS from 3 weeks ago!) just to verify this hadn't somehow changed since the last time I had checked, and it still hadn't. I'm not here to argue or play word games, I was just trying to point out that this isn't some kind of niche setup. The way you make it sound when you talk about Fedora or s6 or whatever gives readers the impression that they can assume /tmp is on tmpfs on anything mainstream & modern, but that's simply not the case -- it's not the case on the second(?) most popular distro. That's all I was trying to convey.