Browse Source

new chroot cmd after glibc-pass2

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2298 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Gerard Beekmans 22 years ago
parent
commit
72b34dd8f8
5 changed files with 30 additions and 2 deletions
  1. 3 0
      chapter01/changelog.xml
  2. 1 0
      chapter06/chapter06.xml
  3. 23 0
      chapter06/revisedchroot.xml
  4. 1 0
      entities/chapter06.ent
  5. 2 2
      index.xml

+ 3 - 0
chapter01/changelog.xml

@@ -56,6 +56,9 @@
 </itemizedlist>
 </para></listitem>
 
+<listitem><para>January 10th, 2003 [gerard]: Added new chroot commands that
+are to be used from that point onwards.</para></listitem>
+
 <listitem><para>January 9th, 2003 [timothy]: Appendix A - Gzip:
 Added patch URL.</para></listitem>
 

+ 1 - 0
chapter06/chapter06.xml

@@ -64,6 +64,7 @@
 &c6-utillinux;
 &c6-kernel-manpages;
 &c6-glibc-pass2;
+&c6-revisedchroot;
 &c6-bootscripts;
 &c6-configure;
 

+ 23 - 0
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>
+

+ 1 - 0
entities/chapter06.ent

@@ -9,6 +9,7 @@
 <!ENTITY c6-mtablink SYSTEM "../chapter06/mtablink.xml">
 <!ENTITY c6-mountproc SYSTEM "../chapter06/mountproc.xml">
 <!ENTITY c6-createfiles SYSTEM "../chapter06/createfiles.xml">
+<!ENTITY c6-revisedchroot SYSTEM "../chapter06/revisedchroot.xml">
 <!ENTITY c6-configure SYSTEM "../chapter06/configure.xml">
 <!ENTITY c6-cf-ldso SYSTEM "../chapter06/config-ldso.xml">
 <!ENTITY c6-cf-keyboard SYSTEM "../chapter06/config-keyboard.xml">

+ 2 - 2
index.xml

@@ -4,8 +4,8 @@
 
 <!ENTITY book SYSTEM "book/book.xml">
 
-<!ENTITY version "20030109">
-<!ENTITY releasedate "January 9th, 2003">
+<!ENTITY version "20030110">
+<!ENTITY releasedate "January 10th, 2003">
 
 <!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">
 <!ENTITY http-root "http://ftp.linuxfromscratch.org">