LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   may be a stupid question (https://www.linuxquestions.org/questions/linux-from-scratch-13/may-be-a-stupid-question-38413/)

newpenguin 12-15-2002 10:18 AM

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.

adam_boz 12-15-2002 05:27 PM

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


newpenguin 12-25-2002 03:35 AM

thanks you very much ADAM.
but i am running mine LFS on slackware scripts.:D

MasterC 12-26-2002 02:54 PM

Then that's BSD style, which you requested not to see :confused:

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

Cool

Grim Reaper 12-27-2002 07:23 PM

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 :D

MasterC 12-28-2002 02:30 AM

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! :D

Cool

Grim Reaper 12-28-2002 07:11 AM

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

newpenguin 01-01-2003 08:43 PM

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!

MasterC 01-02-2003 12:10 AM

You're welcome :)


All times are GMT -5. The time now is 10:21 AM.