aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/revisedchroot.xml
diff options
context:
space:
mode:
authorGerard Beekmans <gerard@linuxfromscratch.org>2003-01-10 15:18:54 +0000
committerGerard Beekmans <gerard@linuxfromscratch.org>2003-01-10 15:18:54 +0000
commit72b34dd8f8aace349203ff45a13dd5f66608d772 (patch)
treeeaf21073bf3ecf8e377a589ece5df64a66d6a4e4 /chapter06/revisedchroot.xml
parent10d18a0f10514f69f8d5c2f8e9c6a4299e3ac4c9 (diff)
new chroot cmd after glibc-pass2
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2298 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/revisedchroot.xml')
-rw-r--r--chapter06/revisedchroot.xml23
1 files changed, 23 insertions, 0 deletions
diff --git a/chapter06/revisedchroot.xml b/chapter06/revisedchroot.xml
new file mode 100644
index 000000000..79f11f009
--- /dev/null
+++ b/chapter06/revisedchroot.xml
@@ -0,0 +1,23 @@
+<sect1 id="ch06-revisedchroot">
+<title>Revised chroot command</title>
+<?dbhtml filename="revisedchroot.html" dir="chapter06"?>
+
+<para>From now on when you exit the chroot environment and wish to re-enter
+it, you need to run the following modified chroot command. The one at the
+beginning of this chapter might not work anymore (if your host distribution
+was based on glibc-2.2.x or older, the programs in <filename
+class="directory">/static/bin</filename>, such as <filename>bash</filename>,
+will not work anymore). The following chroot command will work irregardless
+of your host distribution's Glibc version.</para>
+
+<para>Additionally, now that all software has been installed there is no
+need to use anything from the <filename
+class="directory">/static</filename> directory anymore.</para>
+
+<para><screen><userinput>chroot $LFS /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 \
+&nbsp;&nbsp;&nbsp;&nbsp;/bin/bash --login</userinput></screen></para>
+
+</sect1>
+