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 02-04-2002, 05:18 PM   #1
dj_relentless
Member
 
Registered: Jan 2002
Location: NZ, AKL
Distribution: Redhat 7.1
Posts: 168

Rep: Reputation: 30
alias net-pf etc


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)
 
Old 02-04-2002, 06:42 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
not totally with you, but if you want to load a module you just defined in modules.conf, use

insmod alias-name-here
 
Old 02-04-2002, 07:23 PM   #3
dj_relentless
Member
 
Registered: Jan 2002
Location: NZ, AKL
Distribution: Redhat 7.1
Posts: 168

Original Poster
Rep: Reputation: 30
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)
 
Old 02-05-2002, 02:25 AM   #4
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
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.
 
Old 02-06-2002, 04:49 PM   #5
dj_relentless
Member
 
Registered: Jan 2002
Location: NZ, AKL
Distribution: Redhat 7.1
Posts: 168

Original Poster
Rep: Reputation: 30
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..
 
Old 02-06-2002, 05:36 PM   #6
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
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.

Cheers,

Finegan
 
Old 02-06-2002, 08:00 PM   #7
dj_relentless
Member
 
Registered: Jan 2002
Location: NZ, AKL
Distribution: Redhat 7.1
Posts: 168

Original Poster
Rep: Reputation: 30
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..
 
  


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
Alias question (2 commands for one alias) gflores Linux - Newbie 3 01-21-2006 12:40 AM
alias help lazwaz Linux - General 8 04-29-2005 02:54 AM
freshrpms.net & rpmfind.net are down! JoeyJoeJo General 4 08-28-2003 05:05 PM
help with alias veteq99 Linux - Newbie 2 08-12-2003 04:23 PM
idea: sharing net connection, method: iptables..., problem: broken net connection :( danny2055 Linux - Networking 4 06-09-2003 07:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:37 AM.

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
Open Source Consulting | Domain Registration