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.
When adding this to the modules.conf file what else do I need to do to make it take effect..
So after you add the line you run depmod, then what must you do after that? (excuse the stupid question)
Sorry shoulda explained it better..
When booting I get the errors about net-pf-9 / 5 /3 , according to the faq I can add the line
alias net-pf9 off
to the modules.conf and then run depmod so switch off the modules so it won't look for them on start up..
I was just wondering if there was anything else I need to do, I've got no experience with rebuilding kernels and adding to them as I was too scared to do it with my redhat install.. so was wondering if I should be re-doing the kernel again after making such a subtle change..or how it would work ( I guess I should be reading how to's for this)
You don't have to recompile your kernel for that. It's just a work around which tells it not to look for the modules.
A nicer solution (at least in my opinion) is to compile the net-tools without those protocol families. Answer all the questions before compiling and say no to the ones you don't use. The FAQ lists each one. If you do all that you won't have to apply the workaround afterwards. Ofcourse the disadvantage would be if you do ever decide to use one of those protocol families you will have to recompile the net-tools package.
So I should be able to just run depmod after the mods to the modules.conf and reboot..or is there more?
I'm running the kernel image from my distros boot dir..
Yes, you are fine, relax. Put in the aliases, run depmod -a, reboot, and the silly [failed] stuff goes away.
This came up twice earlier before LFS had its own sub-forum. The whole thing is mainly an issue of the conflict between using a pre-built set of init-scripts and not using a pre-fab kernel that will auto-magically match those init scripts. The other usual issue is the char-major hardware clock thingy, which you can either hack out of the init scripts or re-compile your kernel with it in there. I chose the later. Kernel compilation is a very safe and easy thing to do on an LFS.
I was just curious cause I've run depmod but without the -a (what does that do?) and after reboot it still gave the errors.. I was wondering if the kernel being in a different partition would make a difference to it..well its down to 2 errors now from 4 that was after I did a kernel recompile and enabled a few bits..Weird thing is that I enabled the RTC but its stil giving the char-major etc error..a few more days and it'll be sorted..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.