[lfs] branch trunk updated: Move fixup for $LFS owner/permssion to mounting the new partition
| Newsgroups | gmane.linux.lfs.book |
|---|---|
| Message-ID | <173673872875.11501.5690137083467282734@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 762225783 Move fixup for $LFS owner/permssion to mounting the new partition
762225783 is described below
commit 76222578364245b4f4b92556b04deeda750eae75
Author: Xi Ruoyao <[email protected]>
AuthorDate: Mon Jan 13 11:20:24 2025 +0800
Move fixup for $LFS owner/permssion to mounting the new partition
---
chapter02/mounting.xml | 9 +++++++++
chapter04/creatingminlayout.xml | 9 ---------
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/chapter02/mounting.xml b/chapter02/mounting.xml
index 4db0f5bfc..244a3196b 100644
--- a/chapter02/mounting.xml
+++ b/chapter02/mounting.xml
@@ -42,6 +42,15 @@ mount -v -t ext4 /dev/<replaceable><yyy></replaceable> $LFS/home</userinpu
<replaceable><yyy></replaceable> with the appropriate partition
names.</para>
+ <para>Set the owner and permission mode of the
+ <filename class='directory'>$LFS</filename> directory (i.e. the root
+ directory in the newly created file system for the LFS system) to
+ &root; and <literal>755</literal> in case the host distro has been
+ configured to use a different default for <command>mkfs</command>:</para>
+
+<screen role='nodump'><userinput>chown root:root $LFS
+chmod 755 $LFS</userinput></screen>
+
<para>Ensure that this new partition is not mounted with permissions that are
too restrictive (such as the <option>nosuid</option> or
<option>nodev</option> options). Run the <command>mount</command> command
diff --git a/chapter04/creatingminlayout.xml b/chapter04/creatingminlayout.xml
index e7d651032..d4bfe9af1 100644
--- a/chapter04/creatingminlayout.xml
+++ b/chapter04/creatingminlayout.xml
@@ -18,15 +18,6 @@
location. We do this so those temporary programs will be overwritten when
the final versions are built in <xref linkend="chapter-building-system"/>.</para>
- <para>First, set the owner and permission mode of the
- <filename class='directory'>$LFS</filename> directory (i.e. the root
- directory in the newly created file system for the LFS system) to
- &root; and <literal>755</literal> in case the host distro has been
- configured to use a different default for <command>mkfs</command>:</para>
-
-<screen><userinput>chown root:root $LFS
-chmod 755 $LFS</userinput></screen>
-
<para>Create the required directory layout by issuing the following commands as
<systemitem class="username">root</systemitem>:</para>
--
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