[lfs] branch trunk updated: systemd-custom: use systemctl mask to disable tmp.mount

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]> Sun, 07 Jun 2026 16:05:23 +0000
Newsgroups gmane.linux.lfs.book
Message-ID <178084832341.2528.7131370602924313234@rivendell.linuxfromscratch.org>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository lfs.

The following commit(s) were added to refs/heads/trunk by this push:
     new a83db4839 systemd-custom: use systemctl mask to disable tmp.mount
a83db4839 is described below

commit a83db4839194b0d341638e4f8c0bac4671558d85
Author: Xi Ruoyao <[email protected]>
AuthorDate: Mon Jun 8 00:02:29 2026 +0800

    systemd-custom: use systemctl mask to disable tmp.mount
    
    The effect is the same, but systemctl mask is more declarative and
    it's better to show an example of that.
---
 chapter09/systemd-custom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chapter09/systemd-custom.xml b/chapter09/systemd-custom.xml
index bb8285b31..4b3031eca 100644
--- a/chapter09/systemd-custom.xml
+++ b/chapter09/systemd-custom.xml
@@ -54,7 +54,7 @@ EOF</userinput></screen>
     a tmpfs. If this is not desired, it can be overridden by executing the
     following command:</para>
 
-<screen role="nodump"><userinput>ln -sfv /dev/null /etc/systemd/system/tmp.mount</userinput></screen>
+<screen role="nodump"><userinput>systemctl mask tmp.mount</userinput></screen>
 
     <para>Alternatively, if a separate partition for
     <filename class="directory">/tmp</filename> is desired, specify that

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page