On Tue, 2005-06-07 at 12:56, Archaic wrote: > from > http://www.linuxfromscratch.org/lfs/view/testing/chapter06/revisedchroot.html > > ############# > From now on, when reentering the chroot environment after exiting, use > the following modified chroot command: > > chroot "$LFS" /usr/bin/env -i \ > HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \ > PATH=/bin:/usr/bin:/sbin:/usr/sbin \ > /bin/bash --login > > The reason for this is that, since the programs in /tools are no longer > needed, the directory can be deleted to regain space. Before actually > deleting the directory, exit from chroot and reenter it with the above > command. Also, before removing /tools, tar it up and store it in a safe > place in case another LFS system will be built. > ############# > > > I suggest: > > 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 directory if > so desired or tar it up and keep it to build another final system. > > > ############# > Removing /tools will also remove the temporary copies of Tcl, Expect, > and DejaGNU which were used for running the toolchain tests. To use > these programs later on, they will need to be recompiled and > re-installed. The installation instructions are the same as in Chapter > 5, apart from changing the prefix from /tools to /usr. The BLFS book > discusses a slightly different approach to installing Tcl (see > http://www.linuxfromscratch.org/blfs/). > ############# > > > I suggest: > > Removing /tools will also remove the temporary copies of Tcl, Expect, > and DejaGNU which were used for running the toolchain tests. If you need > these programs later on, they will need to be recompiled and > re-installed. The BLFS book has instructions for this (see > http://www.linuxfromscratch.org/blfs/). > > > > ######## > The packages and patches stored in /sources can also be moved to a > more usual location, such as /usr/src/packages. The entire directory can > also be deleted if its contents have been burned to a CD. > ######## > > > I suggest: > > If you wish, the packages and patches stored in /sources can be moved to > a more usual location, such as /usr/src/packages or in some other > location that suits your needs. Either way, after you reboot and create > your non-root user account, you should make the sources directory > (wherever you choose to put it) writable by this non-root user. > > ----------------------------------------------------------------------- > > This brought up a philosophical debate in my mind. If the book mentions > moving the sources, but then proceeds to move them to a directory where > only root can write, ISTM that this can be mis-interpreted as "you have > to download sources as root to be able to save them". If someone has to > be root to save new sources in the suggested directory then how far is > that from being root to build? > > Apart from this line of thinking, another thought was why does the book > suggest this at all? Is this something that should be left as an > exercise to the reader instead of something that a new reader will > blindly follow (and they most likely will blindly follow)? That is why I > added "if so desired", "If you wish", and "wherever you choose". > > Suggestions?
My suggestion is to leave that part completely out of chapter 6 and put it in as an appendix to the book. It is extremely confusing after you do that and then go to chapter 7. sash -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page