aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/chroot.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/chroot.xml')
-rw-r--r--chapter06/chroot.xml9
1 files changed, 6 insertions, 3 deletions
diff --git a/chapter06/chroot.xml b/chapter06/chroot.xml
index f6880b4a5..2cfaa21de 100644
--- a/chapter06/chroot.xml
+++ b/chapter06/chroot.xml
@@ -10,12 +10,15 @@ can execute the <userinput>chroot</userinput> command.</para>
<para>Become <emphasis>root</emphasis> and run the following command
to enter the chroot environment:</para>
-<para><screen><userinput>chroot $LFS /static/bin/env -i \
+<para><screen><userinput>chroot $LFS /stage1/bin/env -i \
&nbsp;&nbsp;&nbsp;&nbsp;HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
-&nbsp;&nbsp;&nbsp;&nbsp;PATH=/bin:/usr/bin:/sbin:/usr/sbin:/static/bin \
-&nbsp;&nbsp;&nbsp;&nbsp;/static/bin/bash --login</userinput></screen>
+&nbsp;&nbsp;&nbsp;&nbsp;PATH=/bin:/usr/bin:/sbin:/usr/sbin:/stage1/bin \
+&nbsp;&nbsp;&nbsp;&nbsp;LDFLAGS="-s" \
+&nbsp;&nbsp;&nbsp;&nbsp;/stage1/bin/bash --login</userinput></screen>
</para>
+<para><screen><userinput>set +h</userinput></screen></para>
+
<para>The <userinput>-i</userinput> option given to the
<userinput>env</userinput> command will clear all variables of the chroot
environment. After that, only the HOME, TERM, PS1 and PATH variables are