diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 0f4099ac8..90862e6b4 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -43,6 +43,16 @@ appropriate for the entry or if needed the entire day's listitem. --> + + 2018-05-07 + + + [bdubbs] - Change stripping in Chapter 6 to not + require logout. + + + + 2018-05-05 diff --git a/chapter06/revisedchroot.xml b/chapter06/revisedchroot.xml index 8436600f0..10e68daea 100644 --- a/chapter06/revisedchroot.xml +++ b/chapter06/revisedchroot.xml @@ -14,18 +14,21 @@ rm -rf /tmp/* - From now on, when reentering the chroot environment after - exiting, use the following modified chroot command: + Now log out and reenter the chroot environment with an updated + chroot command. From now on, use this updated chroot command any time + you need to reenter the chroot environment after exiting: -chroot "$LFS" /usr/bin/env -i \ +logout + +chroot "$LFS" /usr/bin/env -i \ HOME=/root TERM="$TERM" \ PS1='(lfs chroot) \u:\w\$ ' \ PATH=/bin:/usr/bin:/sbin:/usr/sbin \ /bin/bash --login The reason for this is that the programs in /tools are no longer needed. Since they are no - longer needed you can delete the /tools + class="directory">/tools are no longer needed. For this reason + you can delete the /tools directory if so desired. @@ -52,7 +55,6 @@ rm -f /usr/lib/libbz2.a rm -f /usr/lib/lib{com_err,e2p,ext2fs,ss}.a rm -f /usr/lib/libltdl.a rm -f /usr/lib/libfl.a -rm -f /usr/lib/libfl_pic.a rm -f /usr/lib/libz.a There are also several files installed in the /usr/lib and /usr/libexec diff --git a/chapter06/strippingagain.xml b/chapter06/strippingagain.xml index 821ac8315..f9cb7b5f4 100644 --- a/chapter06/strippingagain.xml +++ b/chapter06/strippingagain.xml @@ -58,9 +58,15 @@ done unset LIB save_lib save_usrlib Before performing the stripping, take special care to ensure that - none of the binaries that are about to be stripped are running. If + none of the binaries that are about to be stripped are running: + +exec /tools/bin/bash + + Now the binaries and libraries can be safely stripped: diff --git a/general.ent b/general.ent index 044254e51..563d18d9c 100644 --- a/general.ent +++ b/general.ent @@ -1,13 +1,13 @@ - + - + - +