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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
10-08-2002, 04:19 PM
|
#2
|
Member
Registered: Feb 2002
Location: Jerusalem, Israel
Distribution: Fedora Core 3
Posts: 154
Original Poster
Rep:
|
oops and one more thing .. need to have glibc 2.2 on your base
distro. (most new ones do)
|
|
|
10-08-2002, 04:25 PM
|
#3
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
how about making them a touch easier to read... why not put it in a <pre> section..? i *think* i mean pre...
|
|
|
10-08-2002, 04:35 PM
|
#4
|
Member
Registered: Feb 2002
Location: Jerusalem, Israel
Distribution: Fedora Core 3
Posts: 154
Original Poster
Rep:
|
they were writen with UNIX NL just download them and view them in mcedit or vim
|
|
|
10-08-2002, 04:45 PM
|
#5
|
Member
Registered: Feb 2002
Location: Jerusalem, Israel
Distribution: Fedora Core 3
Posts: 154
Original Poster
Rep:
|
|
|
|
10-08-2002, 11:08 PM
|
#6
|
Member
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538
Rep:
|
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???
Last edited by adam_boz; 10-08-2002 at 11:09 PM.
|
|
|
10-08-2002, 11:17 PM
|
#7
|
Member
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538
Rep:
|
Wait a Minute....
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.
Good luck... and will it this weekend
|
|
|
10-08-2002, 11:21 PM
|
#8
|
Member
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538
Rep:
|
my bad... I guess i just didn't (don't) understand that function install_program().....
|
|
|
10-09-2002, 04:44 AM
|
#9
|
Member
Registered: Feb 2002
Location: Jerusalem, Israel
Distribution: Fedora Core 3
Posts: 154
Original Poster
Rep:
|
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.. 
|
|
|
10-09-2002, 10:29 PM
|
#10
|
Member
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538
Rep:
|
I like your scripts.... much more elegant then mine (i'm still trying to decipher them). I will test it out this weekend like I said.
About that issue of logins and chroots..... I opened up a thread over in the "programming" section here: http://www.linuxquestions.org/questi...threadid=32391
maybe someone will help us out.
|
|
|
11-03-2002, 04:54 PM
|
#11
|
Member
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538
Rep:
|
finally got back to working on it.... here's what I found.
to get past the chroot step:
exec chroot $LFS /bin/env -i HOME=/root TERM=$TERM PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin: /bin/bash --login -c "script_2"
and after that, when you gotta do /bin/bash --login or whatever, do this:
exec /bin/bash --login script_3
try playing around w/ that
good luck
-Adam
|
|
|
11-04-2002, 05:49 AM
|
#12
|
Member
Registered: Feb 2002
Location: Jerusalem, Israel
Distribution: Fedora Core 3
Posts: 154
Original Poster
Rep:
|
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...
|
|
|
All times are GMT -5. The time now is 05:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|