summaryrefslogtreecommitdiffstats
path: root/core/modules/system-tweaks
diff options
context:
space:
mode:
authorSimon Rettberg2022-07-11 18:31:34 +0200
committerSimon Rettberg2022-07-11 18:31:34 +0200
commit49b0c66b9f63b576de0d3b9543431f1e7c336565 (patch)
treea6cd654417950186f113f93bbf96eb6045c0e820 /core/modules/system-tweaks
parent[rfs-stage32] Make sure we mount tmp before tmpfiles-setup (diff)
downloadmltk-49b0c66b9f63b576de0d3b9543431f1e7c336565.tar.gz
mltk-49b0c66b9f63b576de0d3b9543431f1e7c336565.tar.xz
mltk-49b0c66b9f63b576de0d3b9543431f1e7c336565.zip
[system-tweaks] Prevent systemd-tmpfiles from wiping /tmp on boot
Diffstat (limited to 'core/modules/system-tweaks')
-rw-r--r--core/modules/system-tweaks/data/etc/tmpfiles.d/tmp.conf4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/modules/system-tweaks/data/etc/tmpfiles.d/tmp.conf b/core/modules/system-tweaks/data/etc/tmpfiles.d/tmp.conf
new file mode 100644
index 00000000..365de1f7
--- /dev/null
+++ b/core/modules/system-tweaks/data/etc/tmpfiles.d/tmp.conf
@@ -0,0 +1,4 @@
+# Override the rule by systemd that wipes the entire /tmp dir
+# We might have already put stuff there.
+
+d /tmp 1777 root root -