aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07/systemd-custom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter07/systemd-custom.xml')
-rw-r--r--chapter07/systemd-custom.xml41
1 files changed, 38 insertions, 3 deletions
diff --git a/chapter07/systemd-custom.xml b/chapter07/systemd-custom.xml
index bd1119840..31f518ff2 100644
--- a/chapter07/systemd-custom.xml
+++ b/chapter07/systemd-custom.xml
@@ -53,9 +53,18 @@ EOF</userinput></screen>
<screen role="nodump"><userinput>ln -sfv /dev/null /etc/systemd/system/tmp.mount</userinput></screen>
- <para>This is not necessary if there is a separate partition for
- <filename class="directory">/tmp</filename> specified in
- <filename>/etc/fstab</filename>.</para>
+ <para>Alternatively, if a a separate partition for
+ <filename class="directory">/tmp</filename> is desired, specify that
+ partition in an <filename>/etc/fstab</filename> entry.</para>
+
+ <warning>
+ <para>
+ Do not create the symbolic link above if a separate partition is used
+ for <filename class="directory">/tmp</filename>. This will prvent the
+ root file system (/) from being remounted r/w and make the system
+ unusable when booted.
+ </para>
+ </warning>
</sect2>
@@ -81,6 +90,32 @@ EOF</userinput></screen>
<filename>tmpfiles.d(5)</filename> manual page for file format
details.</para>
+ <para>
+ Note that the syntax for the
+ <filename>/usr/lib/tmpfiles.d/*.conf</filename> files can be
+ confusing. For example, the default deletion of files in the /tmp directory
+ is located in <filename>/usr/lib/tmpfiles.d/tmp.conf</filename> with
+ the line:
+
+<screen role="nodump">q /tmp 1777 root root 10d</screen>
+
+ The type field, q, discusses creating a subvolume with quotas which
+ is really only applicable to btrfs filesystems. It references type v
+ which in turn references type d (directory). This then creates the
+ specified directory if is is not present and adjusts the permissions
+ and ownership as specified. Contents of the directory will be
+ subject to time based cleanup if the age argument is specified.
+ </para>
+
+ <para>
+ If the default parameters are not desired, then the file should
+ be copied to <filename class="directory">/etc/tmpfiles.d</filename>
+ and edited as desired. For example:
+
+<screen role="nodump"><userinput>mkdir -p /etc/tempfiles.d
+cp /usr/lib/tmpfiles.d/tmp.conf /etc/tempfiles.d</userinput></screen>
+ </para>
+
</sect2>
<sect2>