[PATCH] modprobe: Read module options from kernel command line

Dan Nicholson dbn.lists at gmail.com
Fri Sep 5 03:24:08 UTC 2008


On Thu, Sep 4, 2008 at 3:30 PM, Jeremy Katz <katzj at redhat.com> wrote:
> On Thu, 2008-09-04 at 13:54 -0700, Dan Nicholson wrote:
>> It is often advantageous to pass parameters to built-in kernel modules
>> at boot time using the convention <module>.<option>. However, this does
>> not work with loadable modules where modprobe reads its options from the
>> config files. This patch adds support for modprobe to read /proc/cmdline
>> and add any options it finds when inserting the modules.
>
> This is really nice and will allow us to drop some code both from the
> livecd boot path and the installer, both of which read things
> from /proc/cmdline and drop them into modprobe.conf if relevant

Yeah, it seemed like a nice win overall. I originally tried to hack
rc.sysinit to create a temporary file in /etc/modprobe.d from
/proc/cmdline, but it didn't work because or readonly /. This is
cleaner, anyways. Hope to see it in a module-init-tools release soon.

--
Dan




More information about the Fedora-kernel-list mailing list