Re: How to load a kernel module automatically?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On So April 1 2007, Ville Skyttä wrote:

> %post above is broken, it'll fail to do the right thing if the module is
> already loaded.  %preun is broken too, it'll cause the module to be removed
> on package upgrades (assuming it succeeds).  

I do not understand, why this is broken. When updating a kernel module, 
unloading it in %preun and loading the new one in %post seems to me to be the 
desired behaviour. At least this is what I expect as a user. And when the 
module is currently used, so it cannot be removed, then there is imho nothing 
useful the system could do, instead of nothing, which is what will happen 
with the scriptlets.

> The scriptlets above also 
> don't take into account if the package being installed/upgraded/erased
> contains modules for the currently running kernel in the first place; if
> not, they're not desirable.

As far as I understand the scriptlets, they will silently fail when one 
installs the wrong kernel-module, but why should this happen in reality?

> I think it's generally better to not try 
> adding/removing modules in scriptlets at all, but just do the depmod -a(e)
> for the correct kernel.

For me it would be annoying to manually have to reload a module, when this 
could happen automatically. Also you did not explain what is going wrong with 
these scriptlets except that they would do nothing in some cases.

Regards,
Till

Attachment: pgpL7RcYK4HyA.pgp
Description: PGP signature

--
Fedora-maintainers mailing list
Fedora-maintainers@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-maintainers
--
Fedora-maintainers-readonly mailing list
Fedora-maintainers-readonly@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-maintainers-readonly

[Index of Archives]     [Fedora Users]     [Fedora Development]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux