[lfs] 02/02: creatingminlayout: Set the owner and permission of $LFS

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository lfs.

commit 68b56a3c3303ceff24ac3373d17ac5401354527b
Author: Xi Ruoyao <[email protected]>
AuthorDate: Sat Jan 11 23:31:54 2025 +0800

    creatingminlayout: Set the owner and permission of $LFS
    
    The host distro may have an insane default for root_owner and/or
    root_perms in /etc/mke2fs.conf, so let's make it sane on our own.  Note
    that MKE2FS_CONFIG=/dev/null makes mke2fs refuse to run so we cannot
    suppress the host mke2fs.conf.
---
 chapter04/creatingminlayout.xml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/chapter04/creatingminlayout.xml b/chapter04/creatingminlayout.xml
index d4bfe9af1..96f0c591a 100644
--- a/chapter04/creatingminlayout.xml
+++ b/chapter04/creatingminlayout.xml
@@ -18,6 +18,15 @@
   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>At 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.