]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tmpfiles: make /home and /var btrfs subvolumes by default when booted up with them...
authorLennart Poettering <lennart@poettering.net>
Tue, 21 Apr 2015 15:28:16 +0000 (17:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 21 Apr 2015 15:43:55 +0000 (17:43 +0200)
This way the root subvolume can be left read-only easily, and variable
and user data writable with explicit quota set.

Makefile.am
tmpfiles.d/home.conf [new file with mode: 0644]
tmpfiles.d/var.conf

index 68d8252b84c13591cf8e0b0e15a99780f5dd0309..8b16314a6ef7408cf9fc7e163c9fa4f89f0788bd 100644 (file)
@@ -2244,7 +2244,8 @@ dist_tmpfiles_DATA = \
        tmpfiles.d/systemd-nologin.conf \
        tmpfiles.d/tmp.conf \
        tmpfiles.d/x11.conf \
-       tmpfiles.d/var.conf
+       tmpfiles.d/var.conf \
+       tmpfiles.d/home.conf
 
 if HAVE_SYSV_COMPAT
 dist_tmpfiles_DATA += \
diff --git a/tmpfiles.d/home.conf b/tmpfiles.d/home.conf
new file mode 100644 (file)
index 0000000..aa652b1
--- /dev/null
@@ -0,0 +1,11 @@
+#  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
+
+v /home 0755 - - -
+v /srv 0755 - - -
index 9b7644476be0f8d3b600a3b6976111dc89e5384f..814652a22c8b0613b21677c815f670836eb9d787 100644 (file)
@@ -7,7 +7,7 @@
 
 # See tmpfiles.d(5) for details
 
-d /var 0755 - - -
+v /var 0755 - - -
 
 L /var/run - - - - ../run