The right way to automatically load kernel module sg.o
Matthew Saltzman
mjs at ces.clemson.edu
Wed Aug 3 16:06:10 UTC 2005
On Wed, 3 Aug 2005, StarQuake wrote:
> Paul Howarth wrote:
>> StarQuake wrote:
>>
>>> Paul Howarth wrote:
>>>
>>>> StarQuake wrote:
>>>>
>>>>> What is The Right Way(TM) to automatically load the kernel module sg?
>>>>>
>>>>> It somehow feels wrong to put a 'modprobe sg' in /etc/rc.local
>>>>
>>>> On FC4, I use a script /etc/sysconfig/modules/scanner.modules that
>>>> contains:
>>>
>>>> * snip *
>>>>
>>>> Paul.
>>>>
>>>
>>> So there is no modules.autoload file or something?
>>
>>
>> No, there isn't.
>>
>> The "traditional" way was to put something in /etc/rc.modules but that's
>> deprecated now.
Fortunately, there appears to be a replacement: Put scripts in
/etc/sysconfig/modules/*.modules. (Read /etc/rc.sysinit and scan for
"modules".)
>>
>> Paul.
>>
> Oh I forgot, it's FC3, so it will be /etc/rc.local then I guess
/etc/rc.modules is fine for FC3.
The nice thing about these techniques is that they load modules early in
the boot process, so they are there when the startup scripts run.
/etc/rc.local is run last, so startups that need those modules won't have
them when they run.
>
> Thanks anyway
>
>
--
Matthew Saltzman
Clemson University Math Sciences
mjs AT clemson DOT edu
http://www.math.clemson.edu/~mjs
More information about the fedora-list
mailing list