From 7557ca61d20387c8a2ec0c0990e7988e7c13da57 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Tue, 14 Jan 2014 19:36:32 +0000 Subject: Clean /run and /tmp at the end of Chapter 6 git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10440 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 10 ++++++++++ chapter06/chroot.xml | 2 +- chapter06/revisedchroot.xml | 6 +++++- general.ent | 4 ++-- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 0bb2c4ce5..19b882005 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -35,6 +35,16 @@ --> + + 2014-01-14 + + + [bdubbs] - Clean up /run and /tmp. Fixes + #3463. + + + + 2014-01-02 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, run the following command to enter the realm that is, at the moment, populated with only the temporary tools: -chroot "$LFS" /tools/bin/env -i \ +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 @@ Cleaning Up + Finally, clean up some extra files left around from running tests: + +rm -rf /run/* /tmp/* + From now on, when reentering the chroot environment after exiting, use the following modified chroot command: -chroot "$LFS" /usr/bin/env -i \ +chroot "$LFS" /usr/bin/env -i \ HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \ PATH=/bin:/usr/bin:/sbin:/usr/sbin \ /bin/bash --login diff --git a/general.ent b/general.ent index caac8f1c4..993aa9e10 100644 --- a/general.ent +++ b/general.ent @@ -1,5 +1,5 @@ - - + + -- cgit v1.2.3-54-g00ecf