From b3d7bd863e654453b899387778368e3af23a08a7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 21 Apr 2015 17:28:16 +0200 Subject: [PATCH 1/1] tmpfiles: make /home and /var btrfs subvolumes by default when booted up with them missing This way the root subvolume can be left read-only easily, and variable and user data writable with explicit quota set. --- src/libelogind/libelogind.pc.in | 25 +++++++++++++++---------- tmpfiles.d/home.conf | 11 +++++++++++ 2 files changed, 26 insertions(+), 10 deletions(-) create mode 100644 tmpfiles.d/home.conf diff --git a/src/libelogind/libelogind.pc.in b/src/libelogind/libelogind.pc.in index b7e688300..814652a22 100644 --- a/src/libelogind/libelogind.pc.in +++ b/src/libelogind/libelogind.pc.in @@ -5,14 +5,19 @@ # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@ +# See tmpfiles.d(5) for details -Name: elogind -Description: elogind Library -URL: @PACKAGE_URL@ -Version: @PACKAGE_VERSION@ -Libs: -L${libdir} -lelogind -Cflags: -I${includedir} +v /var 0755 - - - + +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/lib 0755 - - - +v /var/lib/machines 0700 - - - + +d /var/spool 0755 - - - diff --git a/tmpfiles.d/home.conf b/tmpfiles.d/home.conf new file mode 100644 index 000000000..aa652b197 --- /dev/null +++ b/tmpfiles.d/home.conf @@ -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 - - - -- 2.30.2