chiark / gitweb /
tmpfiles.d: upgrade a couple of directories we create at boot to subvolumes
authorLennart Poettering <lennart@poettering.net>
Sat, 27 Dec 2014 17:47:17 +0000 (18:47 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 28 Dec 2014 01:08:40 +0000 (02:08 +0100)
In particular we upgrade /var/lib/container, /var/tmp and /tmp to
subvolumes.

tmpfiles.d/tmp.conf
tmpfiles.d/var.conf

index b80dab4..ffdd82f 100644 (file)
@@ -8,8 +8,8 @@
 # See tmpfiles.d(5) for details
 
 # Clear tmp directories separately, to make them easier to override
 # See tmpfiles.d(5) for details
 
 # Clear tmp directories separately, to make them easier to override
-d /tmp 1777 root root 10d
-d /var/tmp 1777 root root 30d
+v /tmp 1777 root root 10d
+v /var/tmp 1777 root root 30d
 
 # Exclude namespace mountpoints created with PrivateTmp=yes
 x /tmp/systemd-private-%b-*
 
 # Exclude namespace mountpoints created with PrivateTmp=yes
 x /tmp/systemd-private-%b-*
index d9545fe..d0c759e 100644 (file)
@@ -18,6 +18,6 @@ f /var/log/btmp 0600 root utmp -
 d /var/cache 0755 - - -
 
 d /var/lib 0755 - - -
 d /var/cache 0755 - - -
 
 d /var/lib 0755 - - -
-d /var/lib/container 0700 - - -
+v /var/lib/container 0700 - - -
 
 d /var/spool 0755 - - -
 
 d /var/spool 0755 - - -