Merge branch 'clear_tmp_on_boot' into 'master'

Clear /tmp when booting

See merge request redox-os/redox!1403
This commit is contained in:
Jeremy Soller 2024-01-08 16:16:55 +00:00
commit f04bb44e55

View file

@ -15,11 +15,16 @@ initfs = {}
ipcd = {}
kernel = {}
ptyd = {}
uutils = {}
## Configuration files
[[files]]
path = "/usr/lib/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 +91,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"