[arch-general] Kernel version in hooks
gdamjan at gmail.com
Tue May 17 13:12:14 UTC 2016
>>> 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.)
More information about the arch-general