On So April 1 2007, Ville Skyttä wrote: > You got it backwards, the simplistic scriptlets posted would do things in > situations where they shouldn't be doing anything (this depends on the > packaging scheme used - I'm assuming you're using the > http://fedoraproject.org/wiki/Packaging/KernelModules one). I only knew the dkms way in more detail, where this should not cause any trouble you described: %post rmmod uinput || : %{_sysconfdir}/sysconf/modules/%{name}.modules || : and with the kmod way something like this (I do not really understand without reading it in detail, how the different kernel flavors are separated, so maybe this has to be done for each variant slightly different) may work: %post if [ "%{kversion}" == "$(uname -r)" ] then rmmod module || : %{_sysconfdir}/sysconf/modules/%{name}.modules || : fi This will only remove and/or load the module , when one for the current kernel is available (which is with the dkms scheme normally the case) and because of no action in %preun, no other harm will caused. But if this causes any other trouble, I would be pleased to be noticed about it. Regards, Till
Attachment:
pgp6faX5OGspx.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