How to load a kernel module automatically?

Julian Sikorski belegdol at gmail.com
Wed Apr 4 12:18:22 UTC 2007


Ville Skyttä napisał(a):
>> Getting back to scriptlets: you mean that I should add depmod 
>> -a on %post and depmod -e on %preun?
> 
> I suggest you read through 
> http://fedoraproject.org/wiki/Packaging/KernelModules and apply ideas 
> presented there to the module packaging scheme you're using in case you're 
> not going to use that one as is.

I guess I will need to use some wildcards for a module present in
vanilla kernel.

> 
>> I would like the upgrade to be as 
>> painless for users as possible, and as there is no easy way to give them
>> a message like "add uinput to modprobe.conf",
> 
> I don't think that would be necessary.  Just drop in 
> the /etc/sysconfig/modules snippet, run appropriate depmods and be done with 
> it.  What I was objecting to was explicitly installing/removing modules 
> in/from the running kernel in package scriptlets.
> 
>> they could be a bit surprised when swiping will cease to work for them.
> 
> I fail to see how not installing/removing modules in %post and friends would 
> result in that.  In fact it feels more likely that it could happen if you 
> *do* it.

What I meant is that the older version did not require uinput at all, so
upgrading ignoring the problem will leave users somehow stranded. Thanks
for all the info, I'll try to take a look at the package later on (we
are at the feature freeze anyway).




More information about the Fedora-maintainers mailing list