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.
This commit is contained in:
parent
161788988c
commit
52a3aa4980
|
@ -20,6 +20,10 @@ ptyd = {}
|
||||||
[[files]]
|
[[files]]
|
||||||
path = "/etc/init.d/00_base"
|
path = "/etc/init.d/00_base"
|
||||||
data = """
|
data = """
|
||||||
|
# clear and recreate tmpdir with 0o1777 permission
|
||||||
|
rm -r /tmp
|
||||||
|
mkdir -m a=rwxt /tmp
|
||||||
|
|
||||||
ipcd
|
ipcd
|
||||||
ptyd
|
ptyd
|
||||||
escalated
|
escalated
|
||||||
|
@ -86,13 +90,6 @@ path = "/share"
|
||||||
data = "usr/share"
|
data = "usr/share"
|
||||||
symlink = true
|
symlink = true
|
||||||
|
|
||||||
## /tmp directory with special mode
|
|
||||||
[[files]]
|
|
||||||
path = "/tmp"
|
|
||||||
data = ""
|
|
||||||
directory = true
|
|
||||||
mode = 0o1777
|
|
||||||
|
|
||||||
## Device file symlinks
|
## Device file symlinks
|
||||||
[[files]]
|
[[files]]
|
||||||
path = "/dev/null"
|
path = "/dev/null"
|
||||||
|
|
Loading…
Reference in a new issue