Proper way to autoload modules (/etc/rc.modules)?

Axel Thimm Axel.Thimm at ATrpms.net
Sun Apr 3 11:26:31 UTC 2005


Hi,

what is the recommended way to automatically load some modules upon
bootup?

Ideally it should be part of /etc/rc.d/rc.sysinit. One can find the
following entry there:

# Load modules (for backward compatibility with VARs)
if [ -f /etc/rc.modules ]; then
        /etc/rc.modules
fi

This mechanism looks fine to me, but for one it says "backward
compatibility", so there must be some more modern approach, and
secondly it is sourcing in one file only, e.g. autoloading would have
to be edited instead of dropped in.

I searched through the archives and bugzilla and found many threads
half-resoved, e.g. everybody is scared off to rely on a feature called
"backwards compatible" as this is the first step to
deprecated.

Whoever wrote that comments knows how to do it better, so step up and
talk! ;)

If there is no better mechanism, then please consider shipping an
/etc/rc.modules that sources in /etc/rc.modules.d/* or similar, so
packages can simply drop in a module loading script.

Thanks!
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20050403/84d2a0c9/attachment.sig>


More information about the fedora-devel-list mailing list