Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47387 - modules-update: "Warning: could not generate /etc/modprobe.conf!"
Summary: modules-update: "Warning: could not generate /etc/modprobe.conf!"
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux x86 Installation Guide (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Docs Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-09 15:17 UTC by Niels Teglsbo
Modified: 2004-05-07 15:28 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Niels Teglsbo 2004-04-09 15:17:38 UTC
I am reading http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1 as the installation guide.

I am installing from LiveCD with a 2.4.21-gss kernel.

But instead of using a 2.4 kernel, I emerged a 2.6 kernel with:
emerge gentoo-dev-sources
and compiled it (including make modules_install).

Following that, in Code Listing 23 I am instructed to run modules-update, but that gives me:

cdimage boot # modules-update
Warning: could not generate /etc/modprobe.conf!

Looking at modules-update source tells me the problem is caused by a call to generate-modprobe.conf:

cdimage boot # generate-modprobe.conf
modprobe: Can't open dependencies file /lib/modules/2.4.21-gss/modules.dep (No such file or directory)

In /lib/modules I only have /lib/modules/2.6.3-gentoo-r1

I hope this is just a documentation bug, and that I will be able to run modules-update when I reboot and run my new 2.6 kernel.


Reproducible: Didn't try
Steps to Reproduce:
1.
2.
3.
Comment 1 Niels Teglsbo 2004-04-09 17:59:20 UTC
I rebooted the machine and it loaded the 2.6 kernel.

Then I was able to issue a modules-update that succeded and created a modprobe.conf.

So I guess the documentation should say that modules-update should be run when you are running your new kernel.
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2004-04-10 01:33:24 UTC
I'm wondering if we can fix the scripts to allow for another kernel (one that is installed but not booted). modules-update doesn't have this option and generate-modprobe.conf doesn't either (or at least not that I saw); depmod does, but I'm not sure this'll help.

@agriffis: any input?
Comment 3 Sune Foldager 2004-04-10 07:47:39 UTC
Yes, I agree that the best solution would be to fix the scripts, either allowing for an option to specify what kernel version you are running, or some way of detecting it (but this could cause problems if a person installed multiple kernels maybe?)
Comment 4 FieldySnuts 2004-04-17 10:04:24 UTC
I am also having this issue on a new stage3 install.

It's not really an option for me to do it after reboot, as it will load my networking module, and I need that to log on remotely to finish the install.
Comment 5 Aron Griffis (RETIRED) gentoo-dev 2004-05-07 15:28:22 UTC
Fixed in baselayout-1.9.0 and module-init-tools-3.0-r2

You need to merge both of them, there aren't auto-dependencies between them right now.  Now you can specify --assume-kernel=x.x.x to modules-update.  If it doesn't work, please re-open the bug (and give me lots of juicy debugging feedback)