From 9bb59863bb6f251f4f950f489ac6571f567fd016 Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Tue, 19 Jun 2001 22:42:12 +0000 Subject: Removed the
and their closing tags from chrootcmd.xml and added them to the files that call chrootcmd. This allows for adding more commands around chroot (like logout in glibc-inst.xml) git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@679 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/bash-inst.xml | 4 +++- chapter06/chroot.xml | 4 +++- chapter06/chrootcmd.xml | 2 -- chapter06/glibc-inst.xml | 5 ++++- chapter06/m4-inst.xml | 4 +++- 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/chapter06/bash-inst.xml b/chapter06/bash-inst.xml index 46f59ef69..ea0e51b00 100644 --- a/chapter06/bash-inst.xml +++ b/chapter06/bash-inst.xml @@ -20,7 +20,9 @@ The static bash is replaced with the dynamic bash and the chroot'ed environment is re-entered by running: -&c6-chrootcmd; +
+ &c6-chrootcmd; +
diff --git a/chapter06/chroot.xml b/chapter06/chroot.xml index 17745173c..42717e2ea 100644 --- a/chapter06/chroot.xml +++ b/chapter06/chroot.xml @@ -13,7 +13,9 @@ everything a user does will be restricted to the LFS partition (since / is actually /mnt/lfs but the shell doesn't know that). -&c6-chrootcmd; +
+ &c6-chrootcmd; +
The TERM=$TERM construction will set the $TERM value inside diff --git a/chapter06/chrootcmd.xml b/chapter06/chrootcmd.xml index 9b3b7e881..ea78af0c1 100644 --- a/chapter06/chrootcmd.xml +++ b/chapter06/chrootcmd.xml @@ -1,6 +1,4 @@ -
cd $LFS && chroot $LFS /usr/bin/env -i HOME=/root \    TERM=$TERM /bin/bash --login -
diff --git a/chapter06/glibc-inst.xml b/chapter06/glibc-inst.xml index ba7463e4a..5a4dbed5a 100644 --- a/chapter06/glibc-inst.xml +++ b/chapter06/glibc-inst.xml @@ -69,7 +69,10 @@ to ensure a properly working bash. Run the following commands to accomplish this:
-&c6-chrootcmd; +
+ logout + &c6-chrootcmd; +
diff --git a/chapter06/m4-inst.xml b/chapter06/m4-inst.xml index 76ae89340..c372d5df0 100644 --- a/chapter06/m4-inst.xml +++ b/chapter06/m4-inst.xml @@ -44,7 +44,9 @@ this can be done after having rebooted into the LFS system rather than chrooting into it. -&c6-chrootcmd; +
+ &c6-chrootcmd; +
-- cgit v1.2.3-54-g00ecf