LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-15-2010, 07:20 PM   #1
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
If the live CD is necessary, why doesn't the book say so?


I keep reading this board and I keep seeing advice to only use the live CD -- with warnings that not doing so will cause problems in the long run.

(For some reason, Slackware users especially seem to get this advice. )

So lets say that I want to take that advice, the problem I see is that the CD is at version 6.3, but the book (stable version) is at 6.6.

So:
  1. Is it possible to build the 6.6 book with the 6.3 CD?
  2. Is it actually possible to build LFS with another distro?

Thanks,
 
Old 07-15-2010, 07:36 PM   #2
lbrigman124
LQ Newbie
 
Registered: Jun 2006
Location: Oregon
Distribution: FC4-6,FC1,RH8-9, LFS,RHEL5, CENTOS5, Unbreakable5
Posts: 12

Rep: Reputation: 2
The best place to ask this question and get an accurate answer would be the LFS mailing list.

From what I read, the liveCD is recommended for building LFS but is not the only way.
Also LFS can be built from any distro as it should start with the compiler and other tools and
build up from there.

So:
A1. Yes, you should be able to build 6.6 with the 6.3 CD.
A2. Yes. I've done it and know others that have also.
 
Old 07-15-2010, 07:39 PM   #3
tdavid
LQ Newbie
 
Registered: May 2010
Posts: 2

Rep: Reputation: 0
It is possible to build a LFS running OS with any distro, however it is not a common practice, NOR is it going to be easy. However LFS (Linux From Scratch) is just that, a long and cumbersome process. If you want a built system, I highly recommend Gentoo, where everything is built from scratch with the exception of the the live cd installation method. Meaning after reboot, you can upgrade / update the essentials, (binutils, sbinutils, etc). With LFS you are building all that from the get-go. Meaning you build every tool to place on the hard drive. (Unless this method has changed)

So in short, the "Live-CD" you plan on installing from, will need all the tools to compile from source code to be placed on the system. The true LFS way. However, I have YET to see a Linux distro installed without an OS running... anyone? You need an OS to build an OS......or at least now-a-days you do.......unless you want to write your binary compiled files with a pencil...

However I could be just flat out wrong......
 
Old 09-12-2010, 10:20 PM   #4
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
There is a script in the book that will check you distro to make sure you have all the necessary tools to complete the build.


Quote:
I have YET to see a Linux distro installed without an OS running... anyone? You need an OS to build an OS......or at least now-a-days you do.......unless you want to write your binary compiled files with a pencil...
With enough time you could build an operating system from rocks. But the answer to this is mostly yes. But it is possible to build them without one just be prepared to write in binary and build a box with alot of switches.
 
Old 09-13-2010, 07:30 AM   #5
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180

Original Poster
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Just a follow-up. I'm now happily building LFS using Slackware 13.1 as the host. I'm halfway through chapter 6 and everything is going swimmingly.

Regards,
 
Old 09-13-2010, 08:00 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Bit of an old thread, but important enough to leave a comment.

Quote:
I keep reading this board and I keep seeing advice to only use the live CD -- with warnings that not doing so will cause problems in the long run.
- The LFS liveCD was made to be the perfect host for building LFS. Hands down the best solution.

- All other distro's can be made into a host for building LFS. There's a chapter about Host System Requirements in the LFS book. Make sure your distro is compliant and you have a good base to start with. The question is: How important is this host distro to you? The changes you have to make could influence the way the host is working, which might not be desirable.

I've build LFS using Slackware, Debian and Ubuntu as hosts without any problems. I do have to admit that I never use the host after I build LFS, the only reason it was there in the first place was to build LFS. I always remove the host to be able to utilize the partition.

Quote:
Is it possible to build the 6.6 book with the 6.3 CD?
Yes.
Do not use the packages and book that are on the liveCD, those are old (probably LFS 6.3). You need to download/use the book and packages that are mentioned in the LFS version you are building. DO NOT mix and match different LFS versions!!

Quote:
Is it actually possible to build LFS with another distro?
Yes. See above.

Hope this clears things up a bit.
 
Old 09-13-2010, 08:45 AM   #7
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180

Original Poster
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by druuna View Post
The question is: How important is this host distro to you? The changes you have to make could influence the way the host is working, which might not be desirable.
Can you elaborate on this a bit? What specific changes are there to the host. So far, I'm not seeing any.

I anticipate potential issues when it comes time to build and install grub, but I plan to either (1) install grub to its own partition and chainload grub and LFS, or simply add my LFS build to Slackware's boot loader.

Regards,
 
Old 09-13-2010, 09:01 AM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Quote:
Originally Posted by druuna
The question is: How important is this host distro to you? The changes you have to make could influence the way the host is working, which might not be desirable.


Can you elaborate on this a bit? What specific changes are there to the host. So far, I'm not seeing any.
If your host has very new versions of packages, you might have to downgrade these to comply with the LFS Host Requirements, depending on which package this could have an impact on your host (think: binutils, gcc, glibc, but also others). The other way around might also create issues (Host has "old" package that need to be upgraded to comply). Either way your host might start working differently (or possibly not at all) after you make these changes.

If LFS is just a side project and not meant to be really used when it is finished, you want to make sure that your host is still in working order after the "experiment" has run its course.

Quote:
I anticipate potential issues when it comes time to build and install grub, but I plan to either (1) install grub to its own partition and chainload grub and LFS, or simply add my LFS build to Slackware's boot loader.
There are indeed 2 ways you can go:
1) Use grub that came with your host and just add LFS (no need to install anything grub related when building LFS),
2) Build all grub related in LFS and use that one (and possibly add your host as well).

Hope this clears things up.
 
Old 09-13-2010, 09:55 AM   #9
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180

Original Poster
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by druuna View Post
If your host has very new versions of packages, you might have to downgrade these to comply with the LFS Host Requirements, depending on which package this could have an impact on your host (think: binutils, gcc, glibc, but also others). The other way around might also create issues (Host has "old" package that need to be upgraded to comply). Either way your host might start working differently (or possibly not at all) after you make these changes.
I see. It turns out that Slackware 13.1 meets all the requirements listed in section vii of the preface (which I checked before I started). No changes were required.

Quote:
If LFS is just a side project and not meant to be really used when it is finished, you want to make sure that your host is still in working order after the "experiment" has run its course.
It's not exactly a side project, but my main purpose is learning more about the construction and configuration of a running Linux system. So far, it has been a very instructive process.

To be safe, I'm build LFS 6.6 with a Slackware 13.1 host running inside a QEMU-KVM virtual machine. (The VM's host is Slackware too, but that's neither here nor there.)

Quote:
There are indeed 2 ways you can go:
1) Use grub that came with your host and just add LFS (no need to install anything grub related when building LFS),
2) Build all grub related in LFS and use that one (and possibly add your host as well).

Hope this clears things up.
It does. Thanks.
 
Old 09-13-2010, 10:03 AM   #10
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by Lufbery View Post
I see. It turns out that Slackware 13.1 meets all the requirements listed in section vii of the preface (which I checked before I started). No changes were required.
One issue with Slackware that I ran into: The system has no more ptys. (6.12. Binutils-2.20). But that was with Slachware version 9 or 10, not sure any more. Could be that that is fixed by now.

If you run into that one have a look here: LFS FAQ - no more ptys.
 
Old 09-13-2010, 11:25 AM   #11
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180

Original Poster
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by druuna View Post
Hi,
One issue with Slackware that I ran into: The system has no more ptys. (6.12. Binutils-2.20). But that was with Slachware version 9 or 10, not sure any more. Could be that that is fixed by now.

If you run into that one have a look here: LFS FAQ - no more ptys.
That wasn't a problem this time, thankfully.

Regards,
 
  


Reply



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
LXer: Book Review: The Official Ubuntu Server Book LXer Syndicated Linux News 0 08-31-2009 03:00 AM
LXer: 'The Book of PF' -- absolutely the newest OpenBSD book available LXer Syndicated Linux News 0 04-10-2008 11:10 AM
LXer: Book Review: The Official Ubuntu Book LXer Syndicated Linux News 0 08-30-2006 04:54 PM
Slackware book purchase vs. URL: http://www.slackware.org/book/ jtp51 Slackware 5 11-28-2004 04:30 PM
beyond lfs book not available??? or no such book?? tuxfood Linux From Scratch 2 04-17-2004 04:12 PM

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

All times are GMT -5. The time now is 03:03 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