Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
generate-modprobe.conf missing?!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
kingfame_147
Apprentice
Apprentice


Joined: 11 Oct 2008
Posts: 167

PostPosted: Sun May 15, 2011 10:47 am    Post subject: generate-modprobe.conf missing?! Reply with quote

Hi,

I'm getting a message that there is a deprecated file in my /etc/modprobe.conf. Indeed there was a file in /etc/modprobe.d/ without a .conf extension which is deprecated now. I changed that, but I don't know how to update the /etc/modprobe.conf to get rid of that message at boot:

Code:

scooter etc # update-modules -f -v
 * No need to generate modules.conf :)
 * Skipping /etc/modprobe.conf generation (generate-modprobe.conf doesn't exist)


Is there an package missing?! I have no clue about that.


Regards,
fame
Back to top
View user's profile Send private message
SinoTech
Advocate
Advocate


Joined: 20 Mar 2004
Posts: 2579
Location: Neunkirchen / Saarland / Germany

PostPosted: Sun May 15, 2011 12:19 pm    Post subject: Reply with quote

Try to re-install this package "sys-apps/module-init-tools". If it still not work, please post the output of ...

Code:

$ ls -l /sbin/generate-modprobe.conf
$ emerge module-init-tools -vpt


Cheers,

Sino
_________________
Help to answer the unanswered
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 3991
Location: Saint Amant, Acadiana

PostPosted: Sun May 15, 2011 12:26 pm    Post subject: Reply with quote

/etc/modprobe.conf/ itself is deprecated, use /etc/modprobe.d/
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
SinoTech
Advocate
Advocate


Joined: 20 Mar 2004
Posts: 2579
Location: Neunkirchen / Saarland / Germany

PostPosted: Sun May 15, 2011 12:49 pm    Post subject: Reply with quote

Jaglover wrote:
/etc/modprobe.conf/ itself is deprecated, use /etc/modprobe.d/

I think he already uses "/etc/modprobe.d/" to store the module options. "/etc/modprobe.conf" is a configuration file, automatically generated by "update-modules", containing all the options from "/etc/modprobe.d/*". Even "/etc/modprobe.conf" seems to be no longer required, executing update-modules is still performed to generate the "/lib/modules/${KERNEL_VERSION}/modules.dep" file.

Cheers,

Sino
_________________
Help to answer the unanswered
Back to top
View user's profile Send private message
SinoTech
Advocate
Advocate


Joined: 20 Mar 2004
Posts: 2579
Location: Neunkirchen / Saarland / Germany

PostPosted: Sun May 15, 2011 1:12 pm    Post subject: Reply with quote

Having the latest stable version of the "module-init-tools" installed, the "update-modules" command no longer generates "/etc/modprobe.conf".

Cheers,

Sino
_________________
Help to answer the unanswered
Back to top
View user's profile Send private message
kingfame_147
Apprentice
Apprentice


Joined: 11 Oct 2008
Posts: 167

PostPosted: Sun May 15, 2011 7:47 pm    Post subject: Reply with quote

Just to be sure not to broke my system:

I just don't need "/etc/modprobe.conf" anymore? So just delete it and the .conf files in "/etc/modprobe.d" will be used automatically while a module is loading, right?


Thanks for your help.



Regards,
fame
Back to top
View user's profile Send private message
SinoTech
Advocate
Advocate


Joined: 20 Mar 2004
Posts: 2579
Location: Neunkirchen / Saarland / Germany

PostPosted: Sun May 15, 2011 8:36 pm    Post subject: Reply with quote

Yes. However, I wonder why "update-modules" still tries to execute "generate-modprobe.conf", as both are contained in the same package. So I recommend to rebuild "sys-apps/module-init-tools" just to ensure you have the latest version installed.
Code:

$ emerge -1 module-init-tools


Cheers,

Sinoi
_________________
Help to answer the unanswered
Back to top
View user's profile Send private message
kingfame_147
Apprentice
Apprentice


Joined: 11 Oct 2008
Posts: 167

PostPosted: Sun May 15, 2011 10:43 pm    Post subject: Reply with quote

I had the newest module-init-tools installed.

The trick is: If there is a "/etc/modprobe.conf" update-modules tries to update it. If there is none it doesn't tries to generate one and update-modules runs fine :)
Back to top
View user's profile Send private message
Apheus
Apprentice
Apprentice


Joined: 12 Jul 2008
Posts: 185

PostPosted: Mon May 16, 2011 6:10 pm    Post subject: Reply with quote

I noticed the "deprecated" warning too, and tried to remove modprobe.conf. My sound card did not work after that. I have an Aureon PCI card additionally to the internal sound chip. For the right order, I had created a file "/etc/modprobe.d/soundcardpriority.conf" long ago, with the content:

Code:
options snd-cmipci index=0
options snd-hda-intel index=1


This worked nicely, even with auto-detection by alsaconf, because the file's content got included in modprobe.conf by update-modules. However, now I had to include these two lines in /etc/modprobe.d/alsa.conf and everything is working again, without modprobe.conf.

So it seems hardwired file names are expected here.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum