LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-15-2002, 11:18 AM   #1
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Rep: Reputation: 30
Cool may be a stupid question


as we compile some very basic and necessary prorams before doing "chroot" into the lfs partition.
after doing "chroot" we compile the same programs again first then any others, so is there any special need to compile these programs again?
and i will be very greatful if any body will send here his /etc/inittab (unix style not bsd style) of his lfs.
thanks.
 
Old 12-15-2002, 06:27 PM   #2
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
The first time you build everything, the libraries are included in with the executables (static). You chroot into $LFS to use these executables to build dynamically linked versions of the programs so that the libraries can be accessed by different programs at the same time. You can just use the static ones I suppose, but in this multi-tasking environment it's better not to.

here's my /etc/inittab. It's in the book somewhere.

Code:
id:3:initdefault:

si::sysinit:/etc/rc.d/init.d/rc sysinit

l0:0:wait:/etc/rc.d/init.d/rc 0
l1:S1:wait:/etc/rc.d/init.d/rc 1
l2:2:wait:/etc/rc.d/init.d/rc 2
l3:3:wait:/etc/rc.d/init.d/rc 3
l4:4:wait:/etc/rc.d/init.d/rc 4
l5:5:wait:/etc/rc.d/init.d/rc 5
l6:6:wait:/etc/rc.d/init.d/rc 6

ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

su:S016:once:/sbin/sulogin

1:2345:respawn:/sbin/agetty tty1 9600
2:2345:respawn:/sbin/agetty tty2 9600
3:2345:respawn:/sbin/agetty tty3 9600
4:2345:respawn:/sbin/agetty tty4 9600
5:2345:respawn:/sbin/agetty tty5 9600
6:2345:respawn:/sbin/agetty tty6 9600
 
Old 12-25-2002, 04:35 AM   #3
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Original Poster
Rep: Reputation: 30
thanks you very much ADAM.
but i am running mine LFS on slackware scripts.

Last edited by newpenguin; 12-25-2002 at 04:36 AM.
 
Old 12-26-2002, 03:54 PM   #4
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Then that's BSD style, which you requested not to see

Here's a link for ya:
http://hints.linuxfromscratch.org/hints/bsd-init.txt

Cool
 
Old 12-27-2002, 08:23 PM   #5
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Rep: Reputation: 30
So does slackware boot like BSD does? Without the SYSV Init scripts? and most other Linux distros use the SYSV Init scripts?

Well, the way i wanna go is with BSD/Slacky in that case coz I've grown to LOVE slacky
 
Old 12-28-2002, 03:30 AM   #6
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Yes, that's my understanding. Slack uses BSD-style init scripts. It does have a sysvinit "available" script, this is only for those packages requiring it.

I am by far no "hard corps slacker" but I think I've read something like this somewhere. Possibly in the email Pat has in root's mailbox after an install.

If anybody knows if I am wrong, or has a better answer, please by all means rip me apart!

Cool
 
Old 12-28-2002, 08:11 AM   #7
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Rep: Reputation: 30
Yeah I think your right MasterC.
I'd read the same thing somewhere, but I can't remember ...Your thoughts confirm it

Last edited by Grim Reaper; 12-28-2002 at 08:19 AM.
 
Old 01-01-2003, 09:43 PM   #8
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Original Poster
Rep: Reputation: 30
thanks you very very much MASTER C.
i copied all the scripts from that LFS hints BSd style init.
but there is a problem i am not able to run the LFS any single time from those hint scripts. it always says that partition is damaged need to check for errors and i tried all options to e2fsck
but .one time i compiled LFs on a ext2 and one time on a ext3 but both times same result.

then i copied and modified a little mine slackware 8 scripts and those worked perfectly on LFS.
now i will try to run the LFS hints BSd style scripts but without the checking disk for errors options.those scripts are really really simple.
sorry for replying so late.
HAVE FUN!
 
Old 01-02-2003, 01:10 AM   #9
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
You're welcome
 
  


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
Stupid, stupid question; I lost Klaptop. :( Surfrider Slackware 2 08-31-2005 10:12 PM
Stupid Dumb Stupid Question... drigz Linux - Software 3 09-23-2004 04:09 PM
Stupid question.... PenguinPwrdBox Linux - Networking 1 09-16-2004 05:54 AM
Maybe a stupid question.... Coolstar Linux - Software 1 11-01-2003 07:58 PM
Another Stupid Question Bobmeister Linux - Hardware 3 05-26-2003 07:16 AM


All times are GMT -5. The time now is 08:12 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration