Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is it possible to use the LFS-Live-CD or any other live cd to install the packages in BLFS.
The reason I'm asking is that it is a God-send to be able to copy and paste from the book. When I print out the pdf version of the book, some characters look too similar and have caused me a lot of grief while doing LFS.
Such as the number 1 & the letter l. Trust me, in the pdf version they look nearly identical as opposed to what you see right here.
This is just a thought and not a major problem other having to print the entire 938 pages of BLFS 6.0 since I can't figure out how else to see it after installing LFS until I install X in BLFS.
I did not use nALFS to install LFS. I did see mention of using links & gpm at the end of the LFS book. I installed LFS 6.1 and am waiting for the companion BLFS 6.1 to be released before I continue. That should give me enough time to decide on which strategy I will use. I think that the link & gpm will be the best bet.
I went back to the LFS 6.1 book and read the following.
Chapter 6 Section 3
Code:
It is important that all the commands throughout the remainder of this chapter and the following chapters are run
from within the chroot environment. If you leave this environment for any reason (rebooting for example),
remember to first mount the proc and devpts file systems (discussed in the previous section) and enter
chroot again before continuing with the installations.
and I put together what I think may be the way to mount the LFS system, assume root & install software while in a live cd enviornment until X and a window manager is installed.
Distribution: LFS, I felt the itch and scratched it
Posts: 227
Rep:
If you're able to get past Chapter 6 in LFS (which you're going to have to to get to installing X), then most of those steps aren't need.
Since tools will no longer be needed, you'll be using the chroot found at the end of Chapter 6
chroot "$LFS" /usr/bin/env -i \
HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
/bin/bash --login
Then do
/sbin/udevstart
and since you should have an fstab completed (if you finished Chapter 7), do
mount /dev/pts
mount /dev/shm
mount /proc
mount /sys
and they should be mounted as they need to. I never really exited my chroot environment from Chapter 6, so I'm guessing that these steps are correct. They do seem like what would need to be done though to get the environment you need (since this is basically what would be done at boot).
It seems to me (and I have not done LFS yet, want to) that once you get through LFS and got to a bash prompt with a solo reboot, the live cd functionality is already done, you could burn a cd with the BLFS book and source to do this.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.