1

Is it possible to pass the target variable to the hook script?

Need it for kernel-module saving mechanism, when another kernel is updated (linux) instead of my running one (linux-hardened).

[Trigger]
Operation = Upgrade
Type = Package
Target = linux
Target = linux-hardened
Target = linux-lts
Target = linux-zen


[Action]
Description = Save Linux kernel modules
When = PreTransaction
Depends = rsync
Exec = /bin/sh pacman-linux-update-modules-pre.sh $Target

1 Answer 1

1
man 5 alpm-hooks

And see the NeedsTargets specifier.

The manpage can be read online at https://jlk.fjfi.cvut.cz/arch/manpages/man/alpm-hooks.5

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .