mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-18 04:57:38 +00:00
Move fixup for $LFS owner/permssion to mounting the new partition
This commit is contained in:
parent
bb5bf3b9d8
commit
7622257836
@ -42,6 +42,15 @@ mount -v -t ext4 /dev/<replaceable><yyy></replaceable> $LFS/home</userinpu
|
|||||||
<replaceable><yyy></replaceable> with the appropriate partition
|
<replaceable><yyy></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
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user