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.
To run them all you need to do is download the
packages and mount a fs on /mnt/lfs. then:
1.run alfsrun1
2.copy all the scripts to somewhere in /mnt/lfs/*
3.enter root
4.run alfsrun2
5.from the now chrooted system run alfsrun3
6.run alfsrun4
7.run alfsrun5
Now continue yourself from "kernel compile."
Good Luck !! notify me how goeth.
IMPORTANT:
a. remove the 3 lines of server added junk at the
end of the scripts before running.
b. download under the GNU Public license.
don't sue me if it kills off the remains of your HD.
cool NGraphiX.... I'll give it a try this weekend (no time till then) and let you know how it goes.
ps- I guess you never figured out how to keep the program going after the chroot & bash in ch. 7 either? I was thinking that maybe it would be possible if you had one script controlling all of the others (maybe a c or c++ program would do it too)... but I never got around to trying it out. You got any Ideas???
It doesn't look like you changed into any of the directories before compiling them???? how did you get around THAT? Also, when I tried this out, and put the "&&"'s in there, it would just give me a bash prompt when it got to that.... does that happen to you?
Here's what I did to get around having to have specific directory names when changing directory to compile... here's the one for bash:
function bash_install {
for i in $( ls | grep bash )
do
cd $i
done
./configure --enable-static-link --prefix=$LFS/static --with-curses
make
make install
cd ..
}
now, in that "ls | grep bash" part, just replace bash with whatever package you are working with... but be-ware, you might need to add some stuff like a "-" on the end, or "-3." to keep it from going into the wrong directory first.
adam_box:
the function install_program is supposed to take of cd'ing
the idea was to put all the stuff that has to be done every time
such as cd'ing, printing error messages etc. into one function.
run them as is they should work
P.S. your right. I didn't come up with any ideas on how to continue
a script after a new login. sigh. if you have any advice..
cool I'll check up on 'exec' as soon as I get back to my linux box,
or preferably get my own computer here at university.
or we can just ask people at the Linux day here which should
be on wendsday (at the technion in Haifa) cheers! hope to back
to linux soon...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.