Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 6th January 2008, 10:44 AM
fabbo Offline
Registered User
 
Join Date: May 2007
Posts: 30
Passing options to modules loaded in initrd

I have a HD which does not work in Linux unless the option dma=0 is passed to libata.ko.

So, I tried adding libata.dma=0 to the GRUB command line. Nothing.

After booting with the rescue DVD (which uses Isolinux for boot, and that seems to accept libata.dma=0), I discovered that the init script in the initrd image loads libata.ko with insmod, without passing any argument to it. Irrespective of the kernel command line.

Is there a way to pass command line options to modules loaded in initrd? Without having to rebuild the whole initrd, of course.
Reply With Quote
  #2  
Old 6th January 2008, 02:01 PM
jcliburn's Avatar
jcliburn Offline
Registered User
 
Join Date: Nov 2004
Location: Mississippi, USA
Posts: 1,180
Try adding this line to /etc/modprobe.conf:

options libata dma=0
Reply With Quote
  #3  
Old 6th January 2008, 02:38 PM
fabbo Offline
Registered User
 
Join Date: May 2007
Posts: 30
Quote:
Originally Posted by jcliburn
Try adding this line to /etc/modprobe.conf:

options libata dma=0
The problem is that, without loading libata, it won't mount the filesystem from the HD, and therefore it won't even read /etc/modprobe.conf from the HD... It's a chicken and egg problem.

Adding that line, and then rebuilding the initrd, is the solution I'm using now (mkinitrd reads the options lines from modprobe.conf, so it builds an initrd which passes the parameter). But, after a kernel update, the initrd needs to be rebuilt again...
Reply With Quote
  #4  
Old 6th January 2008, 02:47 PM
jcliburn's Avatar
jcliburn Offline
Registered User
 
Join Date: Nov 2004
Location: Mississippi, USA
Posts: 1,180
Each time you upgrade your kernel, a new initrd will be built automatically that includes your modprobe.conf customizations. You shouldn't have to change anything again.
Reply With Quote
  #5  
Old 8th January 2008, 08:40 PM
fabbo Offline
Registered User
 
Join Date: May 2007
Posts: 30
OK, I'll try that at the next kernel update.

That makes another question come out. When installing Fedora for the first time, is the initrd generated on the fly, or is it copied from the installation CD?

In the first case, the user, when he is requested to add other kernel parameters, could be also requested for module parameters. So, the right module parameters are present in the initrd since the first install.
Reply With Quote
  #6  
Old 11th January 2008, 02:34 AM
jcliburn's Avatar
jcliburn Offline
Registered User
 
Join Date: Nov 2004
Location: Mississippi, USA
Posts: 1,180
Quote:
Originally Posted by fabbo
That makes another question come out. When installing Fedora for the first time, is the initrd generated on the fly, or is it copied from the installation CD?
It's generated on the fly during installation.

Quote:
In the first case, the user, when he is requested to add other kernel parameters, could be also requested for module parameters. So, the right module parameters are present in the initrd since the first install.
Good idea. You might consider filing a feature request against anaconda at redhat.bugzilla.com.
Reply With Quote
Reply

Tags
initrd, loaded, modules, options, passing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing kernel boot options to modules: howto? morci Using Fedora 1 23rd June 2009 04:09 PM


Current GMT-time: 04:49 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat