Re: Kernel version in hooks

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



>>> Can I somehow get the kernel version from a hook invoked on the kernel
>>> package update?
>>
>> by version I mean the "4.5.4-1-ARCH" kernel version, not the "4.5.4-1"
>> package version
>
>
> How do you detect the kernel package upgrade? If you use the path to its
> modules, you can add "NeedsTargets" to the hook and extract the version from
> the module path just like the dkms hook does it.

the package name, ie.
Type = Package
Target = linux

are you saying to use Type = File and Target = usr/lib/modules/* ?

that'll have some unwanted targets  though (the extramodules on for ex.)


-- 
damjan



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux