> I have finished LFS and BLFS ver7.7 (init) according to book Please
> excuse me if this has already been asked, I was wondering if it is
> possible to build a distro & create an ISO of the whole system, and
> then when booting the newly burned CD/DVD to install it on
> different PCs?

Yes, that's very doable, even advisable!  Who wants to have to rebuild
the same thing twice from scratch?

I've been doing that since my 4.1 build over a decade ago.  But rather
than just making an ISO image of the built system, then going in and
editing all the files that are different system to system, what I do is
fold the book's instructions into a script template that uses a package
manager to record all the binaries built at each step and capture those
in tarballs.

There are three different phases in the book's instructions that are not
well separated because it's assumed one is proceeding step by step
following the book, but need to be for this to work.  There is a setup
phase, for example adding a user.  One must be very careful about, say,
/etc/passwd getting bolixed by injudicious saving and restoring of
tarballs!  Then there's the relatively "safe" build phase where binaries
are made and captured.  The finish step is where the system specific
configurations, etc., are done.  Also when libraries are installed, this
step does the ldconfig.

I've attached a copy of my build script template.  "pio" is my "Package
Installation Observer", i.e. package manager.

Then I have a straightforward clone script that package by package
executes the setup phase for the new system, restores the as-built
binaries, and executes the finish phase for the system specific
configurations.  It's very much like running through the book again,
very quickly.  When I'm careful and get it right (fixing oversights is
just part of the process), I can run through my cloning process on some
temporary host system, e.g. Knoppix or LFS Live, shutdown, move drives
if needed, and boot a configured clone that's ready to go.
-- 
Paul Rogers
paulgrog...@fastmail.fm
Rogers' Second Law: "Everything you do communicates."
(I do not personally endorse any additions after this line. TANSTAAFL :-)

        

-- 
http://www.fastmail.com - Send your email first class

Attachment: template
Description: Binary data

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

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to