Automatic merge of trunk into multilib

This commit is contained in:
Thomas Trepl 2025-01-12 00:30:12 +01:00
commit d86153713e
2 changed files with 28 additions and 6 deletions

View File

@ -8,7 +8,7 @@
<sect1 id="ch-partitioning-aboutlfs"> <sect1 id="ch-partitioning-aboutlfs">
<?dbhtml filename="aboutlfs.html"?> <?dbhtml filename="aboutlfs.html"?>
<title>Setting The $LFS Variable</title> <title>Setting the $LFS Variable and the Umask</title>
<para>Throughout this book, the environment variable <envar>LFS</envar> will <para>Throughout this book, the environment variable <envar>LFS</envar> will
be used several times. You should ensure that this variable is always defined be used several times. You should ensure that this variable is always defined
@ -28,8 +28,14 @@
<quote>/mnt/lfs</quote> (or whatever value the variable was set to) when it <quote>/mnt/lfs</quote> (or whatever value the variable was set to) when it
processes the command line.</para> processes the command line.</para>
<para>Now setting the file mode creation mask (umask) to
<literal>022</literal> in case the host distro uses a different
default:</para>
<screen role="nodump"><userinput>umask 022</userinput></screen>
<caution> <caution>
<para>Do not forget to check that <envar>LFS</envar> is set whenever <para>Do not forget to check that <envar>LFS</envar> is set and the
umask is set to <literal>022</literal> whenever
you leave and reenter the current working environment (such as when doing a you leave and reenter the current working environment (such as when doing a
<command>su</command> to <systemitem class="username">root</systemitem> or <command>su</command> to <systemitem class="username">root</systemitem> or
another user). Check that the <envar>LFS</envar> variable is set up another user). Check that the <envar>LFS</envar> variable is set up
@ -39,10 +45,17 @@
<para>Make sure the output shows the path to your LFS system's build <para>Make sure the output shows the path to your LFS system's build
location, which is <filename class="directory">/mnt/lfs</filename> if the location, which is <filename class="directory">/mnt/lfs</filename> if the
provided example was followed. If the output is incorrect, use the command provided example was followed.</para>
<para>Check that the umask is set up properly with:</para>
<screen role="nodump"><userinput>umask</userinput></screen>
<para>The output should be <computeroutput>022</computeroutput>.</para>
<para>If any output of these two commands is incorrect, use the command
given earlier on this page to set <envar>$LFS</envar> to the correct given earlier on this page to set <envar>$LFS</envar> to the correct
directory name.</para> directory name and set umask to <literal>022</literal>.</para></caution>
</caution>
<note><para>One way to ensure that the <envar>LFS</envar> variable is always <note><para>One way to ensure that the <envar>LFS</envar> variable is always
set is to edit the <filename>.bash_profile</filename> file in both your set is to edit the <filename>.bash_profile</filename> file in both your

View File

@ -18,6 +18,15 @@
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>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 <para>Create the required directory layout by issuing the following commands as
<systemitem class="username">root</systemitem>:</para> <systemitem class="username">root</systemitem>:</para>