man: add a bit of a warning to systemd-tmpfiles --purge

Mention that by default, /home is managed by tmpfiles.d/home.conf, and
recommend that users run systemd-tmpfiles --dry-run --purge first to
see exactly what will be removed.
This commit is contained in:
Nick Rosbrook 2024-06-14 17:31:22 -04:00 committed by Luca Boccassi
parent 7d9a8cc4ac
commit 9ebcac3b51

View file

@ -150,7 +150,11 @@
<varlistentry>
<term><option>--purge</option></term>
<listitem><para>If this option is passed, all files and directories created by a
<filename>tmpfiles.d/</filename> entry will be deleted.</para>
<filename>tmpfiles.d/</filename> entry will be deleted. Keep in mind that by default,
<filename>/home</filename> is created by <command>systemd-tmpfiles</command>
(see <filename>/usr/lib/tmpfiles.d/home.conf</filename>). Therefore it is recommended
to first run <command>systemd-tmpfiles --dry-run --purge</command> to be certain which files
and directories will be deleted.</para>
<xi:include href="version-info.xml" xpointer="v256"/></listitem>
</varlistentry>