From 94e3e7bdd1a7252c28eb30b03910aa7e4a2f974a Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Fri, 22 Dec 2017 20:18:46 +0000 Subject: Update to linux-4.14.8. Add discussion of ethernet device names (systemd). Add discussion of audo file deletion (systemd). Add discussion of separate /tmp (systemd). git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11340 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter07/systemd-custom.xml | 41 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 3 deletions(-) (limited to 'chapter07/systemd-custom.xml') 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 ln -sfv /dev/null /etc/systemd/system/tmp.mount - This is not necessary if there is a separate partition for - /tmp specified in - /etc/fstab. + Alternatively, if a a separate partition for + /tmp is desired, specify that + partition in an /etc/fstab entry. + + + + Do not create the symbolic link above if a separate partition is used + for /tmp. This will prvent the + root file system (/) from being remounted r/w and make the system + unusable when booted. + + @@ -81,6 +90,32 @@ EOF tmpfiles.d(5) manual page for file format details. + + Note that the syntax for the + /usr/lib/tmpfiles.d/*.conf files can be + confusing. For example, the default deletion of files in the /tmp directory + is located in /usr/lib/tmpfiles.d/tmp.conf with + the line: + +q /tmp 1777 root root 10d + + 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. + + + + If the default parameters are not desired, then the file should + be copied to /etc/tmpfiles.d + and edited as desired. For example: + +mkdir -p /etc/tempfiles.d +cp /usr/lib/tmpfiles.d/tmp.conf /etc/tempfiles.d + + -- cgit v1.2.3-54-g00ecf