mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-05 22:04:48 +00:00
Added chrootcmd.xml and have bash-inst.xml, glibc-inst.xml, m4-inst.xml
and chroot.xml use that file git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@650 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
48812b722e
commit
a65b85fa89
@ -18,15 +18,7 @@ The static bash is replaced with the dynamic bash and the chroot'ed
|
||||
environment is re-entered by running:
|
||||
</para>
|
||||
|
||||
<blockquote><literallayout>
|
||||
<userinput>mv $LFS/usr/bin/bash $LFS/usr/bin/bashbug
|
||||
$LFS/bin &&</userinput>
|
||||
<userinput>chroot $LFS /usr/bin/env -i HOME=/root
|
||||
\</userinput>
|
||||
<userinput> TERM=$TERM /bin/bash
|
||||
--login</userinput>
|
||||
|
||||
</literallayout></blockquote>
|
||||
&c6-chrootcmd;
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -13,12 +13,7 @@ everything a user does will be restricted to the LFS partition (since / is
|
||||
actually /mnt/lfs but the shell doesn't know that).
|
||||
</para>
|
||||
|
||||
<blockquote><literallayout>
|
||||
<userinput>cd $LFS &&</userinput>
|
||||
<userinput>chroot $LFS /usr/bin/env -i HOME=/root
|
||||
\</userinput>
|
||||
<userinput> TERM=$TERM /bin/bash --login</userinput>
|
||||
</literallayout></blockquote>
|
||||
&c6-chrootcmd;
|
||||
|
||||
<para>
|
||||
The TERM=$TERM construction will set the $TERM value inside
|
||||
|
6
chapter06/chrootcmd.xml
Normal file
6
chapter06/chrootcmd.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<blockquote><literallayout>
|
||||
<userinput>cd $LFS &&</userinput>
|
||||
<userinput>chroot $LFS /usr/bin/env -i HOME=/root
|
||||
\</userinput>
|
||||
<userinput> TERM=$TERM /bin/bash --login</userinput>
|
||||
</literallayout></blockquote>
|
@ -69,13 +69,7 @@ to ensure a properly working bash.
|
||||
Run the following commands to accomplish this:
|
||||
</para>
|
||||
|
||||
<blockquote><literallayout>
|
||||
<userinput>logout</userinput>
|
||||
<userinput>chroot $LFS /usr/bin/env -i HOME=/root
|
||||
\</userinput>
|
||||
<userinput> TERM=$TERM /bin/bash --login</userinput>
|
||||
|
||||
</literallayout></blockquote>
|
||||
&c6-chrootcmd;
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -44,10 +44,7 @@ this can be done
|
||||
after having rebooted into the LFS system rather than chrooting into it.
|
||||
</para>
|
||||
|
||||
<blockquote><literallayout>
|
||||
<userinput>chroot $LFS /usr/bin/env -i HOME=/root \</userinput>
|
||||
<userinput> TERM=$TERM /bin/bash --login</userinput>
|
||||
</literallayout></blockquote>
|
||||
&c6-chrootcmd;
|
||||
|
||||
</sect2>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user