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.
|
 |
12-15-2002, 10:18 AM
|
#1
|
Member
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219
Rep:
|
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.
|
|
|
12-15-2002, 05:27 PM
|
#2
|
Member
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538
Rep:
|
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
|
|
|
12-25-2002, 03:35 AM
|
#3
|
Member
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219
Original Poster
Rep:
|
thanks you very much ADAM.
but i am running mine LFS on slackware scripts.
Last edited by newpenguin; 12-25-2002 at 03:36 AM.
|
|
|
12-26-2002, 02:54 PM
|
#4
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
12-27-2002, 07:23 PM
|
#5
|
Member
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399
Rep:
|
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 
|
|
|
12-28-2002, 02:30 AM
|
#6
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
12-28-2002, 07:11 AM
|
#7
|
Member
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399
Rep:
|
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 07:19 AM.
|
|
|
01-01-2003, 08:43 PM
|
#8
|
Member
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219
Original Poster
Rep:
|
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!
|
|
|
01-02-2003, 12:10 AM
|
#9
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
You're welcome 
|
|
|
All times are GMT -5. The time now is 10:37 AM.
|
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
|
|