aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/chroot.xml
diff options
context:
space:
mode:
authorGerard Beekmans <gerard@linuxfromscratch.org>2003-05-02 18:20:20 +0000
committerGerard Beekmans <gerard@linuxfromscratch.org>2003-05-02 18:20:20 +0000
commitbc82645e958948a6aefd3147a0d7f712de9eaf6b (patch)
tree4855b70f785c1e6bf04856e97824988120503b05 /chapter06/chroot.xml
parent55b50e3f6653cef278bad7e45fe5a378966953a7 (diff)
Integrated Pure LFS - Phase 1
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2490 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
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