Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51371 - Modules.dep file being searched for when kernel compiled without module support
Summary: Modules.dep file being searched for when kernel compiled without module support
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 63898 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-18 02:32 UTC by Rodney Beck
Modified: 2005-11-27 10:15 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
modules_patch.patch (modules_patch.patch,799 bytes, patch)
2004-09-03 16:00 UTC, Maurice Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rodney Beck 2004-05-18 02:32:30 UTC
I've compiled the 2.6.5-gentoo-r1 kernel without module support (as this is a server, I don't need it), but whenever I restart the machine, a fatal error (doesn't stop startup though) is shown during startup stating it cannot find the "modules.dep" file.

My current workaround is just to touch the file and it stops complaining. I think it would be cleaner though to have a check built in to whichever init script checks for that file (I tried removing the modules init script but the error is still there).

Reproducible: Always
Steps to Reproduce:
1. Compile a kernel without module support.
2. Restart computer.

Actual Results:  
Take note of the "FATAL: */modules.dep cannot be found" (or something to that 
effect).

Expected Results:  
Should boot without that error by detecting if module support is enabled.

Current workaround is to create and empty */modules.dep file.
Comment 1 Sven Wegener gentoo-dev 2004-05-18 04:03:23 UTC
at which point while booting does the error pop up? which services are started
before the error? also please supply the ouput of emerge --info
Comment 2 Rodney Beck 2004-05-20 07:09:03 UTC
I cannot recollect the time during boot when the error occured (I know it was near the start) and as the install is on server machine, I cannot check.

I can provide the "emerge info" report though:

Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE=""
ARCH="x86"
AUTOCLEAN="yes"
BASH_ENV="/etc/portage/bashrc"
CC="gcc"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CVS_RSH="ssh"
CXX="g++"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
FEATURES="autoaddcvs ccache sandbox sfperms userpriv usersandbox"
FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
GENTOO_MIRRORS="ftp://ftp.vic.keypoint.com.au http://mirrors.tds.net/gentoo ftp://mirrot.pacific.net.au/linux/Gentoo"
GLIBC_SSP_CHECKED="1"
GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl ncurses"
HOME="/root"
HOSTNAME="harlem"
INFODIR="/usr/share/info"
INFOPATH="/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info"
INPUTRC="/etc/inputrc"
LESS="-R"
LESSOPEN="|lesspipe.sh %s"
LOGNAME="root"
MAIL="/var/mail/root"
MAKEOPTS="-j2"
MANPATH="/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man"
NOCOLOR="false"
PAGER="/usr/bin/less"
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_CACHEDIR="/var/cache/edb/dep/"
PORTAGE_CALLER="emerge"
PORTAGE_GID="250"
PORTAGE_MASTER_PID="20256"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PRELINK_PATH=""
PRELINK_PATH_MASK=""
PS1="\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]"
PWD="/root"
RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
RPMDIR="/usr/portage/rpm"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT="180"
SHELL="/bin/bash"
SHLVL="1"
SSH_CLIENT="192.168.0.2 1789 22"
SSH_CONNECTION="192.168.0.2 1789 192.168.0.1 22"
SSH_TTY="/dev/pts/22"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="xterm"
USE="acl acpi apache2 apm crypt curl dedicated gdbm gif hardened jpeg libwww mmx mysql ncurses nocd pam pdflib perl png python readline samba slang spell ssl svga tcltk tcpd truetype x86 xml2 zlib"
USER="root"
USERLAND="GNU"
USE_EXPAND="VIDEO_CARDS INPUT_DEVICES LINGUAS"
XARGS="xargs -r"
_="/usr/bin/emerge"
Comment 3 Rodney Beck 2004-05-20 07:10:03 UTC
When I say "near the start", I mean just before init level 3.
Comment 4 Sven Wegener gentoo-dev 2004-05-20 09:46:27 UTC
On my system I haven't found a place where modprobe/insmod/depmod is called
without checking for modules support.

Gentoo Base System version 1.4.3.13

This isn't the latest version. If you already installed the latest version,
did you merge in the changes with etc-update?
Comment 5 Rodney Beck 2004-05-25 17:15:00 UTC
The error appears after setting the hardware clock and before setting the kernel parameters. Hope that helps.
Comment 6 Andreas 2004-06-19 09:33:21 UTC
I would like to add the following:

On my system (most up-to-date; 2.6.7 kernel) there are tons of these FATAL error messages; a real nuisance..., and this error is now around for quite a while!

FATAL: could not load /lib/modules/2.6.7-gentoo/modules.dep: No such file or directory

for example after
 * Start USB and PCI hotplugging
, after
 * Starting HDPARM
, and many messages after
 * INIT: Entering runlevel: 3

this is indeed a nuisance; I'm surprised how long this error is already around. Seems that not many use a kernel without module support; or nobody is paying attention to the error messages.

Comment 7 Maurice Müller 2004-09-03 16:00:32 UTC
Created attachment 38853 [details, diff]
modules_patch.patch

Well, I'm running a system without modules and I can tell you that the error
messages appear at boot time between the messages "Setting system clock to hw
clock" and "Configuring kernel parameters". At shutdown right after "Setting
system clock...". Syslog recorded that modprobe got called, but I was not able
to detect the calling process. So I created a small workaround - a patch for
/etc/init.d/modules - which should create the file automatically in case it
does not exist. The easier one would be to touch the file every time the system
boots up, but this is the nicer implementation... :-)

Even better would be to find out where modprobe gets called and check for
module support in such cases.

    Maurice
Comment 8 Sven Wegener gentoo-dev 2004-09-13 09:26:10 UTC
*** Bug 63898 has been marked as a duplicate of this bug. ***
Comment 9 SpanKY gentoo-dev 2005-02-10 06:10:57 UTC
i assume this is still happening with baselayout-1.11.9+ ...

are you guys using devfs ?  i never see these kind of errors, but i'm 
running udev on my systems
Comment 10 Meder Bakirov 2005-02-10 21:19:50 UTC
With udev there is no such error, it appears, when you use devfs!
Comment 11 SpanKY gentoo-dev 2005-11-27 10:15:20 UTC
this is coming from the devfs daemon afaict and considering devfs is dead and
has been punted from latest 2.6.x kernels, i'm not too interested in trying to
fix it