I've put up my installation script at

https://github.com/NomadHK/salt

I believe (B)LFS should be done through a script right from the start and not 
by typing the commands into the terminal as a once-off procedure. Copying and 
pasting from the book mitigates some of the tedium, but has its dangers (see

http://www.ush.it/team/ascii/hack-tricks_253C_CCC2008/wysinwyc/what_you_see_is_not_what_you_copy.txt

Scripting LFS will cut down mistakes due to typos, encourage experimentation 
(change a few things here and there, revert if tripped, rerun), calm fears 
about package management, and give you something useful (an installation 
script) to hold on to after the long building process.

The way I did it was to run every chapter through a script thus:

#!/bin/bash
sudo chroot /mnt /tools/bin/env -i TERM=xterm HOME=/root \
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash -c "set +h
cd /mnt/lfs/sources
tar -xf file-5.28.tar.gz
pushd file-5.28
./configure --prefix=/usr
make
make check
popd
rm file-5.28"

and if it turns out OK, remove the "make check", append "make install" and 
rerun. As I go through the chapters, these snippets get added to a main 
installation script which grows as I progress through the book.

Hope this is helpful to fellow LFSers.
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to