On 2010-07-15 01:28, Jeff Johnson wrote:
> On Jul 14, 2010, at 8:26 PM, Jefferson Ogata wrote:
>> I'm trying to write a SPEC file for a package that will be triggered on kernel upgrades. Its trigger scriptlet will execute a script to install a kernel module. The script needs to know the version of the new kernel.
>> Is there any way for a trigger scriptlet to discover the version of the triggered package that is being installed?
> I'm gonna assume rpm-5.x behavior (because different than @rpm.org).
> There is a means iirc (but I can't remember offhand which of these methods "works")
Thanks for the detailed response. Actually using rpm-18.104.22.168-18.el5 and
will ask on the rpm.org list as well, but thought you might have some
ideas, and you did.
Given that no matter what I do it seems a bit klugey, I'm leaning toward
just enumerating all the installed kernels and making sure the target
module is installed in each of them.
Will follow up in a couple of days. Thanks again for the great info!
Received on Thu Jul 15 03:42:26 2010