Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 29282

Summary: /etc/init.d/modules not loading modules correctly
Product: Gentoo Linux Reporter: Andy <gentoo>
Component: [OLD] Core systemAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED INVALID    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andy 2003-09-21 13:20:25 UTC
I am running a 2.6 kernel and am using the modules.autoload.d directory. I have
a kernel-2.6 file in there which lists snd_emu10k1 - the module for the
Soundblaster Live cards.

When /etc/init.d/modules is run either at startup or manually it reports:
 * Calculating module dependencies...                 [ ok ]
 * Using /etc/modules.autoload.d/kernel-2.6 as config:
 *   Loading module smd_emu10k1...
 *   Failed to load smd_emu10k1                       [ !! ]

 * Autoloaded 0 module(s)

Changing the modprobe line of the /etc/init.d/modules script to prevent null
routing of the error output from 'modprobe' shows:
(changed line: modprobe -q ${x} ${modargs[${i}]}             #&>/dev/null)

 *   Loading module smd_emu10k1...
FATAL: Module smd_emu10k1 not found.
 *   Failed to load smd_emu10k1                   [ !! ]

Running 'modprobe snd_emu10k1' from a root shell loads the module and its
dependencies correctly.

Reproducible: Always
Steps to Reproduce:
1.Put snd_emu10k1 in /etc/modules.autoload.d/kernel-2.6
2.run /etc/init.d/modules start

Actual Results:  
Script reports (after alteration to remove routing of error message to /dev/null):
FATAL: Module smd_emu10k1 not found.
 *   Failed to load smd_emu10k1 

Expected Results:  
Module and its dependencies should have been loaded

Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.0-test4)
=================================================================
System uname: 2.6.0-test4 i686 AMD Athlon(TM) XP2100+
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs sandbox buildpkg userpriv ccache"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apm avi crypt encode foomaticdb gif jpeg libg++ libwww mad mikmod mmx
mpeg ncurses nls pdflib png quicktime slang spell truetype xml2 xmms xv zlib
alsa gdbm berkdb readline arts svga tcltk java X sdl gpm tcpd pam ssl perl
python imlib oggvorbis gtk qt motif opengl mozilla dvd emacs imap mozcalendar
moznocompose moznoirc mozsvg -oss -cups -esd -gnome -kde"
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-23 07:43:41 UTC
Do you have /usr on a diff filesystem ?
Comment 2 Andy 2003-09-23 10:59:33 UTC
Not entirely sure what you mean - different to what?

FYI:
zoidberg ara # mount

/dev/hda5 on / type ext3 (rw,noatime)
none on /proc type proc (rw)
none on /dev type devfs (rw)
none on /dev/pts type devpts (rw)
/dev/hda6 on /var type ext3 (rw,noatime)
/dev/hda8 on /home type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/bus/usb type usbfs (rw)
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-10-13 14:16:26 UTC
I am blind :/  Please look at:

--
 *   Loading module smd_emu10k1...
FATAL: Module smd_emu10k1 not found.
 *   Failed to load smd_emu10k1 
--

Now go edit your /etc/modules.autoload.d/kernel-2.6, and
correct the type-o to make that:

  smd_emu10k1

read:

  snd_emu10k1

Note the 'n' as second letter, and _not_ 'm'.