diff options
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 |