diff options
author | Gerard Beekmans <gerard@linuxfromscratch.org> | 2003-05-02 18:20:20 +0000 |
---|---|---|
committer | Gerard Beekmans <gerard@linuxfromscratch.org> | 2003-05-02 18:20:20 +0000 |
commit | bc82645e958948a6aefd3147a0d7f712de9eaf6b (patch) | |
tree | 4855b70f785c1e6bf04856e97824988120503b05 /chapter06/chroot.xml | |
parent | 55b50e3f6653cef278bad7e45fe5a378966953a7 (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.xml | 9 |
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 \ HOME=/root TERM=$TERM PS1='\u:\w\$ ' \ - PATH=/bin:/usr/bin:/sbin:/usr/sbin:/static/bin \ - /static/bin/bash --login</userinput></screen> + PATH=/bin:/usr/bin:/sbin:/usr/sbin:/stage1/bin \ + LDFLAGS="-s" \ + /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 |