Move fixup for $LFS owner/permssion to mounting the new partition

This commit is contained in:
Xi Ruoyao 2025-01-13 11:20:24 +08:00
parent bb5bf3b9d8
commit 7622257836
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3
2 changed files with 9 additions and 9 deletions

View File

@ -42,6 +42,15 @@ mount -v -t ext4 /dev/<replaceable>&lt;yyy&gt;</replaceable> $LFS/home</userinpu
<replaceable>&lt;yyy&gt;</replaceable> with the appropriate partition <replaceable>&lt;yyy&gt;</replaceable> with the appropriate partition
names.</para> 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 <para>Ensure that this new partition is not mounted with permissions that are
too restrictive (such as the <option>nosuid</option> or too restrictive (such as the <option>nosuid</option> or
<option>nodev</option> options). Run the <command>mount</command> command <option>nodev</option> options). Run the <command>mount</command> command

View File

@ -18,15 +18,6 @@
location. We do this so those temporary programs will be overwritten when location. We do this so those temporary programs will be overwritten when
the final versions are built in <xref linkend="chapter-building-system"/>.</para> 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 <para>Create the required directory layout by issuing the following commands as
<systemitem class="username">root</systemitem>:</para> <systemitem class="username">root</systemitem>:</para>