[arch-general] Kernel version in hooks
admin at progandy.de
Tue May 17 13:01:56 UTC 2016
Am 17.05.2016 um 14:51 schrieb Damjan Georgievski:
> On 17 May 2016 at 14:50, Damjan Georgievski <gdamjan at gmail.com> wrote:
>> 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.
More information about the arch-general