- Timestamp:
- 05/29/2004 08:00:54 PM (20 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 05616e2
- Parents:
- d44a965
- Location:
- chapter04
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter04/aboutlfs.xml
rd44a965 r55851d6 23 23 24 24 <para>Having this variable set means that if you are told to run a command like 25 < userinput>mkdir $LFS/tools</userinput>, you can type it literally. Your shell26 will replace "$LFS" with "/mnt/lfs" (or whatever you set the variable to) when27 it processes the command line.</para>25 <command>mkdir $LFS/tools</command>, you can type it literally. Your shell 26 will replace <quote>$LFS</quote> with <quote>/mnt/lfs</quote> (or whatever 27 you set the variable to) when it processes the command line.</para> 28 28 29 29 <para>Don't forget to check that <quote>$LFS</quote> is set whenever you leave and 30 reenter the environment (as when doing a n<quote>su</quote> to root or another user).30 reenter the environment (as when doing a <quote>su</quote> to root or another user). 31 31 </para> 32 32 -
chapter04/aboutsbus.xml
rd44a965 r55851d6 9 9 10 10 <para>Most people would like to know beforehand approximately how long it 11 takes to compile and install each package. But "Linux from Scratch"is built11 takes to compile and install each package. But <quote>Linux from Scratch</quote> is built 12 12 on so many different systems, it is not possible to give actual times that are 13 13 anywhere near accurate: the biggest package (Glibc) won't take more than -
chapter04/addinguser.xml
rd44a965 r55851d6 20 20 <para>The meaning of the switches:</para> 21 21 22 <itemizedlist> 23 <listitem><para><userinput>-s /bin/bash</userinput>: This makes 24 <userinput>bash</userinput> the default shell for user 22 <variablelist> 23 <varlistentry> 24 <term><parameter>-s /bin/bash</parameter></term> 25 <listitem><para>This makes 26 <command>bash</command> the default shell for user 25 27 <emphasis>lfs</emphasis>.</para></listitem> 28 </varlistentry> 26 29 27 <listitem><para><userinput>-m</userinput>: This creates a home 30 <varlistentry> 31 <term><parameter>-m</parameter></term> 32 <listitem><para>This creates a home 28 33 directory for <emphasis>lfs</emphasis>.</para></listitem> 34 </varlistentry> 29 35 30 <listitem><para><userinput>-k /dev/null</userinput>: This parameter 36 <varlistentry> 37 <term><parameter>-k /dev/null</parameter></term> 38 <listitem><para>This parameter 31 39 prevents possible copying of files from a skeleton directory (default 32 is <filename >/etc/skel</filename>) by changing the input location to40 is <filename class="directory">/etc/skel</filename>) by changing the input location to 33 41 the special null device.</para></listitem> 34 </itemizedlist> 42 </varlistentry> 43 </variablelist> 35 44 36 45 <para>If you want to be able to log in as <emphasis>lfs</emphasis>, then give … … 56 65 <screen><userinput>su - lfs</userinput></screen> 57 66 58 <para>The <quote>< command>-</command></quote> instructs <command>su</command> to67 <para>The <quote><parameter>-</parameter></quote> instructs <command>su</command> to 59 68 start a <emphasis>login</emphasis> shell.</para> 60 69 -
chapter04/creatingtoolsdir.xml
rd44a965 r55851d6 39 39 40 40 <para>The created symlink enables us to compile our toolchain so that it always 41 refers to <filename >/tools</filename>, meaning that the compiler, assembler41 refers to <filename class="directory">/tools</filename>, meaning that the compiler, assembler 42 42 and linker will work both in this chapter (when we are still using some tools 43 43 from the host) <emphasis>and</emphasis> in the next (when we are <quote>chrooted</quote> to -
chapter04/settingenviron.xml
rd44a965 r55851d6 13 13 <filename>.bash_profile</filename>:</para> 14 14 15 <screen><userinput>cat > ~/.bash_profile << "EOF"</userinput>15 <screen><userinput>cat > ~/.bash_profile << <quote>EOF<quote> 16 16 exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash 17 <userinput>EOF</userinput></screen>17 EOF</userinput></screen> 18 18 19 19 <para>Normally, when you log on as user <emphasis>lfs</emphasis>, … … 33 33 <filename>.bashrc</filename> file instead. Create this latter file now:</para> 34 34 35 <screen><userinput>cat > ~/.bashrc << "EOF"</userinput>35 <screen><userinput>cat > ~/.bashrc << <quote>EOF<quote> 36 36 set +h 37 37 umask 022 … … 40 40 PATH=/tools/bin:/bin:/usr/bin 41 41 export LFS LC_ALL PATH 42 <userinput>EOF</userinput></screen>42 EOF</userinput></screen> 43 43 44 44 <para>The <command>set +h</command> command turns off … … 69 69 everything will work as expected in the chroot environment.</para> 70 70 71 <para>We prepend <filename >/tools/bin</filename> to the standard PATH so71 <para>We prepend <filename class="directory">/tools/bin</filename> to the standard PATH so 72 72 that, as we move along through this chapter, the tools we build will get used 73 73 during the rest of the building process.</para>
Note:
See TracChangeset
for help on using the changeset viewer.