summaryrefslogtreecommitdiff
path: root/tmpfiles.d/var.conf
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-06-11 00:12:21 +0200
committerLennart Poettering <lennart@poettering.net>2014-06-11 00:12:21 +0200
commit9339db7187c61eb7ae7e6ffcddb2b2f2686954eb (patch)
tree0e2e548e623af78908ec86ed70a8e0d375d9a873 /tmpfiles.d/var.conf
parent61147436a37ecf523cf3a08f10d139371a4a55ad (diff)
tmpfiles: always recreate the most basic directory structure in /var
Let's allow booting up with /var empty. Only create the most basic directories to get to a working directory structure and symlink set in /var.
Diffstat (limited to 'tmpfiles.d/var.conf')
-rw-r--r--tmpfiles.d/var.conf20
1 files changed, 20 insertions, 0 deletions
diff --git a/tmpfiles.d/var.conf b/tmpfiles.d/var.conf
new file mode 100644
index 0000000000..10d2e4965d
--- /dev/null
+++ b/tmpfiles.d/var.conf
@@ -0,0 +1,20 @@
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+# See tmpfiles.d(5) for details
+
+L /var/run - - - - ../run
+
+d /var/log 0755 - - -
+f /var/log/wtmp 0664 root utmp -
+f /var/log/btmp 0600 root utmp -
+
+d /var/cache 0755 - - -
+d /var/cache/man - - - 30d
+
+d /var/lib 0755 - - -
+d /var/spool 0755 - - -