Skip to content
Snippets Groups Projects
Commit 52a3aa49 authored by bjorn3's avatar bjorn3
Browse files

Clear /tmp when booting

This matches the behavior of most UNIX systems and ensures that the disk
doesn't eventually fills entirely with unused temporary files.
parent 16178898
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,10 @@ ptyd = {}
[[files]]
path = "/etc/init.d/00_base"
data = """
# clear and recreate tmpdir with 0o1777 permission
rm -r /tmp
mkdir -m a=rwxt /tmp
ipcd
ptyd
escalated
......@@ -86,13 +90,6 @@ path = "/share"
data = "usr/share"
symlink = true
## /tmp directory with special mode
[[files]]
path = "/tmp"
data = ""
directory = true
mode = 0o1777
## Device file symlinks
[[files]]
path = "/dev/null"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment