You are not logged in.

#1 2017-04-28 23:41:46

nannerpussy
Member
Registered: 2017-02-15
Posts: 96

Disabled tmpfs, setup tempfiles.d, editing makepkg.conf and yaourtrc

Generally the first thing I do to an Arch install is to mask tmpfs and setup tempfiles.d, but this time I thought about maybe re-enabling it for certain apps. Here is my tmpfiles.d/tmp.conf:

# always enable /tmp folder cleaning
D! /tmp 1777 root root 0

# remove files in /var/tmp older than 10 days
D /var/tmp 1777 root root 10d

# namespace mountpoints (PrivateTmp=yes) are excluded from removal
x /tmp/systemd-private-*
x /var/tmp/systemd-private-*
X /tmp/systemd-private-*/tmp
X /var/tmp/systemd-private-*/tmp

I have configured makepkg.conf to use a BUILD directory in /tmp, and configured yaourt to use /var/builds/. Assuming the actual compiled packages are stored elsewhere, is this a safe setup? Should I add a line in my tmp.conf to make sure /var/builds gets cleared out each reboot, or does yaourt automatically handle that BUILD dir cleanup on its own? If no, could a [c]d /var/builds 1000 myname myname 0[/c] line work to clean that specific dir? I did [c]chown -rHv[/c] /var/builds for myname already.

What I kind of want to do is to use tmpfs ONLY for Chromium, maybe setup systemd-swap and install Steam (not the games, just the app) there, along with a couple more always-open apps I use. Is it even worth the trouble in 2017 to do all this? We all have beastly gaming rigs with more RAM than could ever be used and TBs of storage space reserved just for Steam games (some of those fuckers are 60-80GB each now). Tmpfs seems like a relic of the past that could be useful in limited specific circumstances, like a browser. No? Yes? Should I just fuck off and keep it disabled and move all my building tmp stuff back into /tmp?

I'm still pretty terrible at linux, so if you need to see a .conf file that I forgot, just ask.

Edit: forgot to mention, I moved AUR building to /var/ in the first place because of how goddamn huge a few packages I use are (wine-gallium stuff, games, etc). Even 16GB of physical RAM gets chewed up in tmpfs if I forget to reboot or just build too much.

Last edited by nannerpussy (2017-04-28 23:44:20)

Offline

Board footer

Powered by FluxBB