LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-21-2009, 04:13 PM   #1
David2010
Member
 
Registered: May 2009
Posts: 255

Rep: Reputation: 23
Whats the point of chapter 5?


I am confused. What is the point of chapter 5 if there is chapter 6 doing the same thing but extended.

Or is there something I am missing here???

Can I just skip chapter 5 and proceed with chapter 6?
 
Old 07-21-2009, 04:58 PM   #2
chigurh8
Member
 
Registered: Jul 2009
Distribution: Ubuntu, Gentoo
Posts: 102

Rep: Reputation: 18
From Chapter 5:
Quote:
This chapter shows how to build a minimal Linux system. This system will contain just enough tools to start constructing the final LFS system in Chapter 6 and allow a working environment with more user convenience than a minimum environment would.
From Chapter 5:
Quote:
The overall goal of Chapter 5 is to provide a temporary environment that can be chrooted into and from which can be produced a clean, trouble-free build of the target LFS system in Chapter 6. Along the way, we separate the new system from the host system as much as possible, and in doing so, build a self-contained and self-hosted toolchain. It should be noted that the build process has been designed to minimize the risks for new readers and provide maximum educational value at the same time.
From Chapter 6:
Quote:
In this chapter, we enter the building site and start constructing the LFS system in earnest. That is, we chroot into the temporary mini Linux system, make a few final preparations, and then begin installing the packages.
 
Old 07-22-2009, 03:57 PM   #3
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
To put it simply, what you do in chapter 5 is a necessary building block to complete the LFS system.

Some of these packages are needed to resolve circular dependencies—for example, to compile a compiler, you need a compiler.
http://www.linuxfromscratch.org/lfs/...ter01/how.html
 
Old 07-23-2009, 02:50 PM   #4
RaptorX
Member
 
Registered: Jun 2009
Location: Emden, Germany
Distribution: Slackware 12.2, Slax 6.1
Posts: 254

Rep: Reputation: 37
When you finish chapter 5 you have all the necessary components for building LFS in chapter 6 totally independent from your host system... look at it this way:

in chapter 5 you built bash 3.2 with the tools gcc, make, and others which are installed in your host system in /usr/bin or equivalent... but remember that you used ./configure --prefix=/tools right??

That means that when you chroot into /tools in chapter 6 when you issue bash, it will not open /usr/bin/bash in your host but in the mini linux that you created...

that way when you create your LFS you dont do it with the tools of your host but from your mini-linux that you created in chapter 5...

in short:

Quote:
Along the way, we separate the new system from the host system as much as possible, and in doing so, build a self-contained and self-hosted toolchain.

from chapter 6:

Quote:
From this point on, there is no need to use the LFS variable anymore, because all work will be restricted to the LFS file system. This is because the Bash shell is told that $LFS is now the root (/) directory.
let me add that bash will now look for all the executables in $LFS/tools/bin BY DEFAULT now.

That should be totally clear...
 
Old 08-10-2009, 12:44 AM   #5
Ferpecto
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Rep: Reputation: 0
You're building a system that will build the system. lol
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS 6.3, messed up somewhere prior to chapter 6.12 (gcc), how to restart chapter 6? Funkster Linux From Scratch 2 12-24-2008 07:30 AM
Whats the point of ./configure? MadCactus Linux - General 9 07-12-2004 11:01 PM
whats the point in Xor encryption ? qwijibow Linux - Security 26 02-08-2004 03:37 PM
Distro's.. whats the point ??? (no realy, tell me) qwijibow Linux - Distributions 16 11-28-2003 12:22 PM
whats the point in ide-scsi emulation ? qwijibow Linux - Newbie 7 05-31-2003 08:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration