Changeset 94e3e7bd for chapter07/systemd-custom.xml
- Timestamp:
- 12/22/2017 08:18:46 PM (6 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 3b4e848
- Parents:
- 896e77e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/systemd-custom.xml
r896e77e r94e3e7bd 54 54 <screen role="nodump"><userinput>ln -sfv /dev/null /etc/systemd/system/tmp.mount</userinput></screen> 55 55 56 <para>This is not necessary if there is a separate partition for 57 <filename class="directory">/tmp</filename> specified in 58 <filename>/etc/fstab</filename>.</para> 56 <para>Alternatively, if a a separate partition for 57 <filename class="directory">/tmp</filename> is desired, specify that 58 partition in an <filename>/etc/fstab</filename> entry.</para> 59 60 <warning> 61 <para> 62 Do not create the symbolic link above if a separate partition is used 63 for <filename class="directory">/tmp</filename>. This will prvent the 64 root file system (/) from being remounted r/w and make the system 65 unusable when booted. 66 </para> 67 </warning> 59 68 60 69 </sect2> … … 81 90 <filename>tmpfiles.d(5)</filename> manual page for file format 82 91 details.</para> 92 93 <para> 94 Note that the syntax for the 95 <filename>/usr/lib/tmpfiles.d/*.conf</filename> files can be 96 confusing. For example, the default deletion of files in the /tmp directory 97 is located in <filename>/usr/lib/tmpfiles.d/tmp.conf</filename> with 98 the line: 99 100 <screen role="nodump">q /tmp 1777 root root 10d</screen> 101 102 The type field, q, discusses creating a subvolume with quotas which 103 is really only applicable to btrfs filesystems. It references type v 104 which in turn references type d (directory). This then creates the 105 specified directory if is is not present and adjusts the permissions 106 and ownership as specified. Contents of the directory will be 107 subject to time based cleanup if the age argument is specified. 108 </para> 109 110 <para> 111 If the default parameters are not desired, then the file should 112 be copied to <filename class="directory">/etc/tmpfiles.d</filename> 113 and edited as desired. For example: 114 115 <screen role="nodump"><userinput>mkdir -p /etc/tempfiles.d 116 cp /usr/lib/tmpfiles.d/tmp.conf /etc/tempfiles.d</userinput></screen> 117 </para> 83 118 84 119 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.