On 10/03/12 01:42, Bruce Dubbs wrote: > I am wondering about making a change to LFS to combine some of the root > directories and /usr. I have rolled my own distro based on LFS+BLFS, and then merged root and /usr.
This was actually much more painless than I had expected; in contrast, updating to a new version of gcc or gnome is 10-20 times more work (not to mention upgrading Python, which seems like a project for a lifetime). First of all I took a slightly different approach to the layout: I link "/usr" -> ".." and "/sbin/" -> "/bin". I try to install all software in / and just keep the /usr link around for those packages where paths are hardcorded to /usr/... Maybe one day /usr can be dropped completely... The complete directory creation script is here, just for reference, in case you want to nick something: http://sourceforge.net/p/kaarpux/code/ci/HEAD/tree/master/chroot_scripts/create_dirs.sh My whole merge is contained in two commits: http://sourceforge.net/p/kaarpux/code/ci/8d16d8d359ee6f59f4cd19bf157db040d3d11aac/ http://sourceforge.net/p/kaarpux/code/ci/abf9064f9cd0605136fc26bcd1b02f91784c4b0f/ Although a lot of files are changed, most of them are simplified, and most of those changes where needed because I did not stick to my own "guidelines" in the pre-merge code. The only "painful" part was getting pass 1 and pass 2 to install into / instead of /usr, but with the symlinks you can even decide not to do this, or to do it later. One important piece of advice: Use PREFIX="/" and --prefix="/" etc. instead of PREFIX="" and --prefix="". Whereas the latter is more correct, conceptually, many packages will choke on it. All in all, my 5 cents: GO FOR IT! It is relatively painless, and it makes things simpler. /Henrik -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page