[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Selt-built kernel - complaints about modules!



On Sun, Aug 20, 2000 at 12:09:16PM +0100, Robert Davies wrote:
> > On Sat, Aug 19, 2000 at 04:11:24AM +0200, Sven Burgener wrote:
> > > I have problems with my freshly baked kernel / modules: when booting,
> > > just after the "Calculating module dependencies..." message I get errors
> > > complaining about it not finding the modules smbfs, vfat, this, that and
> > > some more...

It is modprobe that issues these errors. This happens in
/etc/init.d/modutils:

--/etc/init.d/modutils--
[snip]
	echo -n "Calculating module dependencies... "
	depmod -a > /dev/null
	echo "done."
[snip]

# Loop over every line in /etc/modules.
echo -n 'Loading modules: '
(cat /etc/modules; echo) | # make sure there is a LF at the end
while read module args
do
	case "$module" in
		auto)	[ ${startkerneld} -eq 0 -a -x /sbin/kerneld ] && \
			echo && /etc/init.d/kerneld start && startkerneld=1;
			continue ;;
		noauto) continue ;;
		\#*|"") continue ;;
	esac
	echo -n "$module "
	modprobe $module $args
done
[snip]
--/etc/init.d/modutils--

modprobe gets called to load all modules in /etc/modules, which looks
like this on my system now:

--/etc/modules--
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line.  Comments begin with
# a #, and everything on the line after them are ignored.
binfmt_aout
binfmt_misc
nfs
nfsd
smbfs
vfat
pcnet32
ppp
sg
--/etc/modules--

Now, I have compiled all of these directly into my kernel, so that I am
left with only one module:

# grep -i '=m' /usr/src/kernel-source-2.2.17/.config
CONFIG_DUMMY=m

Question: I am now wondering whether the modules listed in /etc/modules 
can all be ignored and thus commented out?

I think these came from the original setup when installing the system. 
During the installation you are prompted about which modules to load. The 
installer then tries to load them and tells about success of doing so.
Remember?
I am quite sure about this because these are the modules I said to load 
when installing this potato box.

> The messages come IIRC from moddep, but that's not really the point, getting
> a consistent kernel config is.

A consistent setup is always nice.

Sven
-- 
   I am the "ILOVEGNU" signature virus. Just copy me to your signature.
This email was infected under the terms of the GNU General Public License.



Reply to: