Changeset 2c094d6 for chapter06/chroot.xml
- Timestamp:
- 09/28/2002 09:08:29 PM (22 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, v4_0, v4_1, v5_0, v5_1, v5_1_1, 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:
- 4d46e012
- Parents:
- f5cc1c17
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/chroot.xml
rf5cc1c17 r2c094d6 1 1 <sect1 id="ch06-chroot"> 2 <title>Entering the chroot 'edenvironment</title>2 <title>Entering the chroot environment</title> 3 3 <?dbhtml filename="chroot.html" dir="chapter06"?> 4 4 5 <para>It is time to enter the chroot 'edenvironment in order to begin installing5 <para>It is time to enter the chroot environment in order to begin installing 6 6 the packages we need. Before you can chroot, however, you need to become 7 7 <emphasis>root</emphasis>, since only <emphasis>root</emphasis> … … 9 9 10 10 <para>Become <emphasis>root</emphasis> and run the following command 11 to enter the chroot 'edenvironment:</para>11 to enter the chroot environment:</para> 12 12 13 13 <para><screen><userinput>chroot $LFS /static/bin/env -i \ … … 18 18 19 19 <para>The <userinput>-i</userinput> option given to the 20 <userinput>env</userinput> command will clear all variables of the chroot 'ed20 <userinput>env</userinput> command will clear all variables of the chroot 21 21 environment. After that, only the HOME, TERM, PS1 and PATH variables are 22 22 set again. The TERM=$TERM construct will set the TERM variable inside chroot … … 25 25 such as CFLAGS or CXXFLAGS, this is a good place to set them again.</para> 26 26 27 <para>From this point on there's no need anymore to use the $LFS variable,27 <para>From this point on there's no need anymore to use the LFS variable, 28 28 because everything you do will be restricted to the LFS file system -- since 29 29 what the shell thinks is <filename class="directory">/</filename> is actually … … 31 31 32 32 <para>You have to make sure all the commands in the rest of this chapter and 33 in the following chapters are run from within the chroot 'edenvironment.33 in the following chapters are run from within the chroot environment. 34 34 If you ever leave this environment for any reason (rebooting for example), 35 35 you must remember to again enter chroot and mount proc (discussed later)
Note:
See TracChangeset
for help on using the changeset viewer.