diff options
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/chroot.xml | 2 | ||||
-rw-r--r-- | chapter06/revisedchroot.xml | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/chapter06/chroot.xml b/chapter06/chroot.xml index c90285c9a..d946e5664 100644 --- a/chapter06/chroot.xml +++ b/chapter06/chroot.xml @@ -15,7 +15,7 @@ class="username">root</systemitem>, run the following command to enter the realm that is, at the moment, populated with only the temporary tools:</para> -<screen><userinput>chroot "$LFS" /tools/bin/env -i \ +<screen role="nodump"><userinput>chroot "$LFS" /tools/bin/env -i \ HOME=/root \ TERM="$TERM" \ PS1='\u:\w\$ ' \ diff --git a/chapter06/revisedchroot.xml b/chapter06/revisedchroot.xml index ecfd51f71..f233d82cc 100644 --- a/chapter06/revisedchroot.xml +++ b/chapter06/revisedchroot.xml @@ -10,10 +10,14 @@ <title>Cleaning Up</title> + <para>Finally, clean up some extra files left around from running tests:</para> + +<screen><userinput>rm -rf /run/* /tmp/*</userinput></screen> + <para>From now on, when reentering the chroot environment after exiting, use the following modified chroot command:</para> -<screen><userinput>chroot "$LFS" /usr/bin/env -i \ +<screen role="nodump"><userinput>chroot "$LFS" /usr/bin/env -i \ HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \ PATH=/bin:/usr/bin:/sbin:/usr/sbin \ /bin/bash --login</userinput></screen> |