Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

baselayout2 and modprobe

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
v_andal
Guru
Guru
Posts: 549
Joined: Tue Aug 26, 2008 4:25 pm
Location: Germany

baselayout2 and modprobe

  • Quote

Post by v_andal » Mon May 09, 2011 8:06 am

Hi!

After reading the http://www.gentoo.org/doc/en/openrc-migration.xml I've discovered, that I don't have /etc/modules.autoload.d/kernel-2.6. Instead I have
/etc/modprobe.conf, /etc/modprobe.d, /etc/modules.conf and /etc/modules.d There's also update-modules utility from module-init-tools. I can't understand, how the /etc/conf.d/modules is involved here.

Ok. Most likely, I can get rid /etc/modules.conf and /etc/modules.d. Probably I should also get rid of /etc/modprobe.conf and keep things in /etc/modprobe.d
directory. Why would I want to use /etc/conf.d/modules and how it is used really?
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Mon May 09, 2011 9:32 am

cause /etc/conf.d/modules is for kernel module config and /etc/modprobe.d is for modules config

let's take alsa

if you want configure some alsa functions, it's done in /etc/modprobe.d/alsa.conf
and if you want to load the alsa module with some extra option, this time, it's in /etc/conf.d/modules, this is == to the command line parameter you could use when using modprobe on a module
Top
Sysa
Apprentice
Apprentice
User avatar
Posts: 161
Joined: Wed Mar 16, 2005 8:52 am
Location: Europe

  • Quote

Post by Sysa » Mon May 09, 2011 9:58 am

Just do your migration and do not worry about.
RedHat -> SuSE -> Debian -> Gentoo
Top
v_andal
Guru
Guru
Posts: 549
Joined: Tue Aug 26, 2008 4:25 pm
Location: Germany

  • Quote

Post by v_andal » Tue May 10, 2011 7:14 am

krinn wrote:cause /etc/conf.d/modules is for kernel module config and /etc/modprobe.d is for modules config

let's take alsa

if you want configure some alsa functions, it's done in /etc/modprobe.d/alsa.conf
and if you want to load the alsa module with some extra option, this time, it's in /etc/conf.d/modules, this is == to the command line parameter you could use when using modprobe on a module
Hm. If I want to provide options to my alsa module, then I put them directly into alsa.conf. At least that's what I always do. Do you say that instead I can place those options into /etc/conf.d/modules and some script shall provide them to kernel when it loads the module? Hm. I'm curious how this is done. So far I was assuming that modules loading is done always by modprobe, so there's no sense in having any other configuration except for /etc/modprobe.d.
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Tue May 10, 2011 8:35 am

v_andal wrote:so there's no sense in having any other configuration except for /etc/modprobe.d.
there's no sense until you wish to provide an option to load your module when using kernel X and using some different ones when using kernel Y.
/etc/modprobe.d/*.conf will be load for all kernels, /etc/conf.d/modules can target kernel versions.
Top
v_andal
Guru
Guru
Posts: 549
Joined: Tue Aug 26, 2008 4:25 pm
Location: Germany

  • Quote

Post by v_andal » Tue May 10, 2011 11:48 am

I guess, I've figured out why this exists. This is needed for loading those modules that are not loaded automatically by the kernel :)
Top
Post Reply

6 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy