* Upgrade to expect-5.43.0
[linux_from_scratch.git] / chapter06 / chroot.xml
blob9ef1cca3e728eaf5744da49f866b4a96b12c7c39
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3   <!ENTITY % general-entities SYSTEM "../general.ent">
4   %general-entities;
5 ]>
6 <sect1 id="ch-system-chroot">
7 <title>Entering the Chroot Environment</title>
8 <?dbhtml filename="chroot.html"?>
10 <para>Enter the chroot environment:</para>
12 <screen><userinput>chroot "$LFS" /tools/bin/env -i \
13     HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
14     PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
15     /tools/bin/bash --login +h</userinput></screen>
17 </sect1>