Yesterday as I proceeded with my GlibC adventures, I finally got to the point at which I needed to rebuild it. Another speed bump! After I had configure GlibC and "Adjusted the Tool Chain," I uninstalled GlibC to start again. I obviously couldn't do it. Nor could I do anything by reverting to Ch 5 procedures. I received a definite lesson on the changes to $LFS/tools in Chapter 6. So, I needed to revert back to the original /tools.

I have discovered a convenient and powerful command line combination. It's presented in The CPIO Manual <http://www.gnu.org/software/cpio/manual/>.

Code: find . -depth -print0 | cpio --null -pvd $new-directory

So to revert to a "fresh" $LFS/tools I merely did

rm -r $LFS/tools/*
cd /mnt/backups/lfs-toolchain
find . -depth -print0 | cpio --null -pvd $LFS/tools

In less than a minute I was back in business.

I backed up /tools in the same way.

With a little fiddling and the addition of -xdev to find, one can back up a whole partition in a matter of a few minutes. In fact, I used this to migrate my Ubuntu distro to an external hard drive so that I could use my entire internal hard drive for my new {,B}LFS build.

I hope someone finds this helpful.

Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to